Example #1
0
 public ActionResult Delete(int id)
 {
     if (Session["LogedUserID"] != null)
     {
         try
         {
             db.sp_DeleteAlerts(id, Session["LogedUserID"].ToString(), System.DateTime.Now);
             db.SaveChanges();
             return(RedirectToAction("Index"));
         }
         catch (Exception ex)
         {
             return(RedirectToAction("Index"));
         }
     }
     else
     {
         return(RedirectToAction("../Login/Index"));
     }
 }