Add project files.
This commit is contained in:
9
Common.Library/Interfaces/IMethodSharingService.cs
Normal file
9
Common.Library/Interfaces/IMethodSharingService.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Common.Library
|
||||
{
|
||||
public interface IMethodSharingService<TEntity>
|
||||
{
|
||||
ObservableCollection<TEntity> Get();
|
||||
}
|
||||
}
|
||||
10
Common.Library/Interfaces/IRepository.cs
Normal file
10
Common.Library/Interfaces/IRepository.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Common.Library;
|
||||
|
||||
public interface IRepository<TEntity>
|
||||
{
|
||||
Task<IEnumerable<TEntity>> Get();
|
||||
Task<TEntity?> Get(int id);
|
||||
Task<int> Save(TEntity entity);
|
||||
bool Delete(TEntity entity);
|
||||
Task<bool> DeleteById(int Id);
|
||||
}
|
||||
Reference in New Issue
Block a user