Example #1
0
 internal static IntStringModel MapCase(CaseHeader cs)
 {
     return new IntStringModel()
     {
         Id = cs.Id,
         Value = String.Format("#{0}", cs.Id),
     };
 }
Example #2
0
        internal static IEnumerable<IntStringModel> MapCasesToIntStringModel(CaseHeader[] cases)
        {
            var result = new List<IntStringModel>();

            foreach (var cs in cases)
                result.Add(Mappers.MapCase(cs));

            return result;
        }
Example #3
0
        internal static List<ComplaintListItemViewModel> MapCasesToComplaintsListItem(CaseHeader[] cases)
        {
            var result = new List<ComplaintListItemViewModel>();

            foreach (var cs in cases)
                result.Add(Mappers.MapCaseToComplaintsListItem(cs));

            return result;
        }
 private PageInfoComplaintOption GetPageInfoOption(CaseHeader complaint)
 {
     return new PageInfoComplaintOption()
     {
         Id = complaint.Id,
         Title = String.Format("#{0}", complaint.Id),
         Value = String.Format("/Complaints/Overview/{0}", complaint.Id),
     };
 }
Example #5
0
        internal static ComplaintListItemViewModel MapCaseToComplaintsListItem(CaseHeader currentCase)
        {
            var result = new ComplaintListItemViewModel()
            {
                Id = currentCase.Id,
                CaseId = currentCase.Id,
                RegistrationId = currentCase.RegistrationNumber ?? 0,
                Complainant = currentCase.Complainant,
                Architect = currentCase.Architect,
            };

            return result;
        }