IRepository

    public interface IRepository
    {
        T GetById(object id);
        List GetAll();
        IQueryable Query(Expression<Func> filter);

        void Add(T t);
        void Delete(T t);
        void Save();
    }
Advertisement