Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 /// <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);
     }
 }
Ejemplo n.º 3
0
 public virtual IEnumerable <T> GetAll()
 {
     return(_repository.GetAll());
 }