public ActionResult Edit(BoxDTO boxDTO) { if (ModelState.IsValid) { // var result = _bs.UpdateBox(boxDTO.ID); var result = _bs.UpdateBox(boxDTO); return(RedirectToAction("Index", "AdminBox")); } GetViewBagData(); return(View(boxDTO)); }
public ActionResult Edit(BoxDTO boxDTO) { if (ModelState.IsValid) { // var result = _bs.UpdateBox(boxDTO.ID); var result = _bs.UpdateBox(boxDTO); return(RedirectToAction("Index", "AdminBox")); } GetViewBagData(); return(View(boxDTO)); }