public ActionResult Edit(Animals record) { if (ModelState.IsValid) { record.AddingDate = DateTime.Now; recordsDAO.EditRecord(record); return(RedirectToAction("Index")); } else { return(View("Edit")); } }
public ActionResult Edit(Records record) { if (ModelState.IsValid) { recordsDAO.EditRecord(record); return(View("OK")); } else { return(View("Ошибка")); } }