public ActionResult UpdateInfo(Note note) { if (note.ExpensesTravel != 0 && note.ExpensesFood != 0) { if (ModelState.IsValid) { NotesBusiness.Add(note); } } return(View()); }
public ActionResult StudentPage(Note note) { ViewBag.Title = "Відправка форми"; note.MinimalTaitionFee = note.MaximalTaitionFee; if (note.ExpensesTravel != 0 && note.ExpensesFood != 0) { if (ModelState.IsValid) { if (NotesBusiness.IsInBase(note) == false) { NotesBusiness.Add(note); } return(RedirectToAction("Success", new { Id = note.UniversityID })); } } return(View()); }