Example #1
0
        public ActionResult Delete(int taskId)
        {
            NotificationsDisplay notifications = new NotificationsDisplay();

            notifications.Delete(taskId);


            return(RedirectToAction("HomeIndex"));
        }
Example #2
0
        public ActionResult DeleteNotification()
        {
            NotificationsDisplay notifications = new NotificationsDisplay("Delete");


            notifications.Delete(Convert.ToInt32(Session["notificationId"]));

            return(RedirectToAction("Index"));
        }
Example #3
0
        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"));
        }