internal static DTOLawOfficeSenderContext ToDTO(LawOfficeSenderContext model) { DTOLawOfficeSenderContext dto = new DTOLawOfficeSenderContext(); dto.BusinessContext = ToDTO(model.BusinessContext); dto.SenderId = model.SenderId; dto.SenderName = model.SenderName; return(dto); }
internal static LawOfficeSenderContext FromDTO(DTOLawOfficeSenderContext dto) { LawOfficeSenderContext model = new LawOfficeSenderContext(); model.BusinessContext = FromDTO(dto.BusinessContext); model.SenderId = dto.SenderId; model.SenderName = dto.SenderName; return(model); }