using System; using System.Collections.Generic; using System.Linq.Expressions; namespace DAL.Interfaces { public interface IRepository where T : class { T Add(T entity); T Update(T entity); void Delete(T entity); void Delete(Expression> where); T GetById(int id); T Get(Expression> where); IEnumerable GetAll(); IEnumerable GetMany(Expression> where); int SaveChanges(); } }