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

            return(customerModel.Id);
        }