/// <summary> /// Initializes a new instance of the <see cref="ContactWithDetailsDTO"/> class. /// </summary> /// <param name="cnt"> /// The user. /// </param> /// <param name="cases"> /// The categories. /// </param> /// <param name="notes"> /// The notes. /// </param> /// <param name="emailHistory"> /// The email History. /// </param> public ContactWithDetailsDTO(Contact cnt, TabFirstPageWrapper <Category> cases = null) : base(cnt) { if (cases != null) { this.casesTabFirstPage = cases.Convert(x => new CategoryDTO(x)); } }
/// <summary> /// Initializes a new instance of the <see cref="CompanyWithDetailsDTO"/> class. /// </summary> /// <param name="f"> /// The c. /// </param> /// <param name="firmContacts"> /// The company Contacts. /// </param> /// <param name="cases"> /// The categories. /// </param> public CompanyWithDetailsDTO(Company f, TabFirstPageWrapper <Contact> firmContacts = null, TabFirstPageWrapper <Category> cases = null) : base(f) { if (firmContacts != null) { this.firmContactsTabFirstPage = firmContacts.Convert(x => new ContactDTO(x)); } if (cases != null) { this.casesTabFirstPage = cases.Convert(x => new CategoryDTO(x)); } }