Пример #1
0
        public RiskAssessmentListData GetRiskAssessmentListData(RiskAssessmentListFilterModel filter, int Userid, int OrganizationId)
        {
            RiskAssessmentListData list         = new RiskAssessmentListData();
            ObjectParameter        totalRecords = new ObjectParameter("TotalRecords", typeof(int));
            var data = base.RepositoryContext.SP_GetRiskAssessmentList(filter.PageNo, filter.PageSize, filter.SortColumn, filter.SortOrder
                                                                       , filter.SubjectFilter, filter.AssessmentDateFilter, filter.DurationUnitFilter, filter.ResponsibleTeamFilter, OrganizationId, totalRecords).ToList();

            list.RiskAssessmentListResult = Mapper.Map <List <SP_GetRiskAssessmentList_Result>, List <RiskAssessmentListResult> >(data);
            list.TotalRecords             = Convert.ToInt32(totalRecords.Value);
            return(list);
        }
Пример #2
0
 public RiskAssessmentListData GetRiskAssessmentListData(RiskAssessmentListFilterModel filter)
 {
     return(this._IRiskAssessmentRepository.GetRiskAssessmentListData(filter, base.UserId, base.OrganizationId));
 }