Beispiel #1
0
 public AuditListViewResult GetAuditListData(AuditListFilterModel filter, int LoggedInOrgId)
 {
     AuditListViewResult list = new AuditListViewResult();
     ObjectParameter totalRecords = new ObjectParameter("TotalRecords", typeof(int));
     var data = base.RepositoryContext.SP_GetAuditList(
         filter.PageNo, filter.PageSize, filter.SortColumn,
         filter.SortOrder, filter.Title, filter.Scope, LoggedInOrgId, totalRecords).ToList();
     list.AuditListResult = Mapper.Map<List<SP_GetAuditList_Result>, List<AuditListResult>>(data);
     list.TotalRecords = Convert.ToInt32(totalRecords.Value);
     return list;
 }
Beispiel #2
0
 public AuditListViewResult GetAuditListData(AuditListFilterModel filter)
 {
     return(this._IAuditRepository.GetAuditListData(filter, base.OrganizationId));
 }