public Client(ClientAggregate clientAggregate) { FirstName = clientAggregate.FirstName; LastName = clientAggregate.LastName; Email = clientAggregate.Email; PhoneNumber = clientAggregate.PhoneNumber; DiscountId = clientAggregate.Discount; }
public Client Update(ClientAggregate clientAggregate) { FirstName = clientAggregate.FirstName; LastName = clientAggregate.LastName; Email = clientAggregate.Email; PhoneNumber = clientAggregate.PhoneNumber; DiscountId = clientAggregate.Discount; return(this); }