18 lines
385 B
C#
18 lines
385 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DaSaSo.Domain.Services
|
|
{
|
|
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);
|
|
}
|
|
}
|