public ActionResult Edit(CustomerEditVM customerEditVM) { try { var customer = _mapper.Map <Dozen2Models.Customer>(customerEditVM); _customerBL.EditCustomer(customer); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }