public ActionResult Delete(int taskId) { NotificationsDisplay notifications = new NotificationsDisplay(); notifications.Delete(taskId); return(RedirectToAction("HomeIndex")); }
public ActionResult DeleteNotification() { NotificationsDisplay notifications = new NotificationsDisplay("Delete"); notifications.Delete(Convert.ToInt32(Session["notificationId"])); return(RedirectToAction("Index")); }
public ActionResult OasisTask(string NewTask, string id) { oasisTask MynewTask = new oasisTask("Insert_no_model"); MynewTask.NewTask(Convert.ToInt32(Session["userId"]), "oasisTask", NewTask); NotificationsDisplay notifications = new NotificationsDisplay(); notifications.Delete(Convert.ToInt32(id)); return(RedirectToAction("GetTask")); }