示例#1
0
 public IEnumerable <T> Get <T>(params IListParameter[] parameter)
 {
     using (Repository = new PayrollItemRepository())
     {
         var data = Repository.Get(parameter);
         return(data as IEnumerable <T>);
     }
 }
示例#2
0
 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>);
     }
 }
示例#3
0
 public IEnumerable <T> Get <T>(params IListParameter[] parameter) where T : IPayrollItemModel
 {
     using (Repository = new PayrollItemRepository())
     {
         var data = Repository.Get <T>(parameter);
         return(data);
     }
 }