using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using TaskManager.Entity; using TaskManager.EntityFramework.Repository; namespace TaskManager.EntityFramework { public interface IRepository where TEntity : BaseEntity { Task GetByIdAsync(int id); Task> GetAllAsync(); Task AddAsync(TEntity entity); Task UpdateAsync(TEntity entity); Task DeleteAsync(int id); Task> GetPagedAsync(PagingParams pagingParams); Task> GetPagedAsync( Expression> filter = null, PagingParams pagingParams = null); } }