public CustomerToEmployeeViewModel TakeACustomertoMakeEmployee(int id) { Customer customer = this.Context.Customers.Find(id); CustomerToEmployeeViewModel viewModel = Mapper.Map <CustomerToEmployeeViewModel>(customer); return(viewModel); }
public ActionResult CreateEmployee(int id) { CustomerToEmployeeViewModel viewModel = this.service.TakeACustomertoMakeEmployee(id); return(View("~/Areas/Administrator/Views/CreateEmployee.cshtml", viewModel)); }