Пример #1
0
        private static AllegationWithMyComment MapAllegationsWithMyComment(ComplaintComments.AllegationWithMyComment allegation)
        {
            var result = new AllegationWithMyComment();

            result.Id = allegation.Id;
            result.Text = allegation.Text;
            result.Documents = Mappers.MapDocuments(allegation.Documents);
            result.Comment = Mappers.MapMyAllegationComment(allegation.MyComment);
            if (allegation.OtherComments != null)
                result.OtherComments = Mappers.MapMiniComments(allegation.OtherComments);

            return result;
        }
Пример #2
0
        private static CaseNewAllegation GetNewAllegation(AllegationWithMyComment allegation)
        {
            var documents = Mappers.GetCaseNewDocuments(allegation.Documents);

            return new CaseNewAllegation()
            {
                Id = Guid.NewGuid(),
                Text = allegation.Text,
                Documents = documents.ToArray(),
            };
        }