// GET: CustomerController/Edit/5 public ActionResult Edit(int id) { Dozen2Models.Customer customer = _customerBL.GetCustomerByID(id); CustomerEditVM customerEditVM = _mapper.Map <CustomerEditVM>(customer); return(View(customerEditVM)); }
public Entities.Customer ParseCustomer(Dozen2Models.Customer customer) { var entityCustomer = new Entities.Customer { Name = customer.Name, Age = customer.Age, PhoneNumber = customer.PhoneNumber }; return(entityCustomer); }
public Dozen2Models.Customer ParseCustomer(Entities.Customer entityCustomer) { var customer = new Dozen2Models.Customer { Name = entityCustomer.Name, Age = entityCustomer.Age, PhoneNumber = entityCustomer.PhoneNumber, CustomerId = entityCustomer.CustomerId }; return(customer); }