// GET: ManufactorerTypes/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ManufactorerType manufactorerType = _uow.ManufactorerTypes.GetById(id); if (manufactorerType == null) { return(HttpNotFound()); } return(View(manufactorerType)); }
// GET: ManufactorerTypes/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ManufactorerType manufactorerType = _uow.ManufactorerTypes.GetById(id); if (manufactorerType == null) { return(HttpNotFound()); } var vm = new ManufactorerTypeCreateEditViewModel() { ManufactorerType = manufactorerType }; return(View(vm)); }