19 lines
414 B
C#
19 lines
414 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Shared.Contracts
|
|
{
|
|
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);
|
|
T CreateNonAsync(T entity);
|
|
}
|
|
}
|