using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Shared.Contracts { public interface IDataService: IDisposable { Task> GetAll(); Task Get(int id); Task Create(T entity); Task Update(T entity); Task Delete(int id); //T CreateNonAsync(T entity); } }