public ActionResult Edit(ProcedureCategoryViewModel viewModel) { if (ModelState.IsValid) { _categoryRepository.Update(viewModel); return RedirectToAction("Index"); } return View(viewModel); }
public Domain.ProcedureCategory ConvertToSource(ProcedureCategoryViewModel model) { return new Domain.ProcedureCategory{ Id = model.Id, Name = model.Name }; }