public ActionResult Edit([Bind(Include = "PreparedReagentId,LotNumber,IdCode,PreparedReagentName,LastModifiedBy")] PreparedReagent maxxamMadeReagent) { if (ModelState.IsValid) { _uow.PreparedReagentRepository.Update(maxxamMadeReagent); _uow.Commit(); return(RedirectToAction("Index")); } return(View(maxxamMadeReagent)); }
public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PreparedReagent maxxamMadeReagent = _uow.PreparedReagentRepository.Get(id); if (maxxamMadeReagent == null) { return(HttpNotFound()); } return(View(maxxamMadeReagent)); }