public CustomerModel(CustomerCreateRequestModel customerRequestModel) { Name = customerRequestModel.Name; Email = customerRequestModel.Email; Address = customerRequestModel.Address; Password = customerRequestModel.Password; }
public ActionResult <Guid> CreateCustomer(CustomerCreateRequestModel customerRequestModel) { var customerModel = _customerServices.Create(new CustomerModel(customerRequestModel)); return(customerModel.Id); }