Ejemplo n.º 1
0
 public static bool Deny(ForbidForm form)
 {
     T_Notification notif = new T_Notification()
     {
         Date = DateTime.Now,
         Titre = form.Title,
         Message = form.reason,
         Check = false
     };
     return (DataAccess.Notification.Deny(notif, form.IdEvent));
 }
Ejemplo n.º 2
0
 public ActionResult DenyEvent(ForbidForm form)
 {
     if (ModelState.IsValid)
     {
         if (BusinessManagement.Notification.Deny(form))
         {
             return RedirectToAction("NotValidEvent", "Admin");
         }
         else
         {
             return View("Error");
         }
     }
     return View(form);
 }
Ejemplo n.º 3
0
 public ActionResult DenyEvent(long idevent)
 {
     ForbidForm model = new ForbidForm() { IdEvent = idevent};
     return View(model);
 }