public IList <IndexListModel> GetList(int page = 1, int pageSize = 5) { return(_formRepository.GetAll().Skip(page * pageSize + pageSize).Take(pageSize).Select(x => new IndexListModel { AuthorLastName = x.AuthorLastName, AuthorName = x.AuthorName, DefenderLastName = x.DefenderLastName, DefenderName = x.DefenderName, Email = x.AuthorEmail, SubAuthorName = x.SubAuthorName, SubAuthorLastName = x.SubAuthorLastName, ReportTitle = x.ReportTitle }).ToList()); }
/// <summary> /// Line KPI DataTable /// </summary> public DataTable GetLineKpiDataList(BusinessInfo aInfo) { try { var companycode = aInfo.CompanyCode; var cCode = companycode.Replace(",", "','"); ARepository = new BusinessplanRepository <DataTable>(); var data = ARepository.GetAll(cCode, aInfo.FromDate, aInfo.ToDate); return(data); } catch (Exception ex) { throw new Exception(ex.Message); } }
public virtual IEnumerable <T> GetAll() { return(_repository.GetAll()); }