예제 #1
0
 public ActionResult UpdateInfo(Note note)
 {
     if (note.ExpensesTravel != 0 && note.ExpensesFood != 0)
     {
         if (ModelState.IsValid)
         {
             NotesBusiness.Add(note);
         }
     }
     return(View());
 }
예제 #2
0
 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());
 }
예제 #3
0
 public ActionResult DeleteNote(string id)
 {
     NotesBusiness.Delete(id);
     return(RedirectToRoute("List"));
 }