public EmployeeProfile(string firstName, string lastName) { Id = Guid.NewGuid(); FirstName = firstName; LastName = lastName; FullName = DataFormatFunctions.FullName <string>(firstName, lastName); CompensationRate = 0; EmployeeAddresses = new HashSet <EmployeeAddress>(); PhoneNumbers = new HashSet <PhoneNumber>(); }
public CustomerProfile(string firstName, string lastName, ModelEnums.TypeCustomer type) { Id = Guid.NewGuid(); FirstName = firstName; LastName = lastName; CustomerType = type; FullName = DataFormatFunctions.FullName <string>(firstName, lastName); CustomerAddresses = new HashSet <CustomerAddress>(); PhoneNumbers = new HashSet <PhoneNumber>(); }