public ActionResult Edit(Animals record)
 {
     if (ModelState.IsValid)
     {
         record.AddingDate = DateTime.Now;
         recordsDAO.EditRecord(record);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View("Edit"));
     }
 }
Exemple #2
0
        public ActionResult Edit(Records record)

        {
            if (ModelState.IsValid)
            {
                recordsDAO.EditRecord(record);
                return(View("OK"));
            }
            else
            {
                return(View("Ошибка"));
            }
        }