public IEnumerable <T> Get <T>(params IListParameter[] parameter) { using (Repository = new PayrollItemRepository()) { var data = Repository.Get(parameter); return(data as IEnumerable <T>); } }
public override IEnumerable <T> Get <T>(int start, int limit, string sort, string dir, out int totalCount, params IListParameter[] parameter) { using (Repository = new PayrollItemRepository()) { var data = Repository.Get(start, limit, sort, dir, out totalCount, parameter); return(data as IEnumerable <T>); } }
public IEnumerable <T> Get <T>(params IListParameter[] parameter) where T : IPayrollItemModel { using (Repository = new PayrollItemRepository()) { var data = Repository.Get <T>(parameter); return(data); } }