First commit
This commit is contained in:
17
DaSaSo.Domain/Services/IDataService.cs
Normal file
17
DaSaSo.Domain/Services/IDataService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.Domain.Service
|
||||
{
|
||||
public interface IDataService<T>
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> Get(int id);
|
||||
Task<T> Create(T entity);
|
||||
Task<T> Update(int id, T entity);
|
||||
Task<bool> Delete(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user