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")); }
public ActionResult Filltask(string Taksdetail) { oasisTask MynewTask = new oasisTask("Insert_no_model"); NotificationsDisplay notifications = new NotificationsDisplay(); MynewTask.NewTask(Convert.ToInt32(Session["userId"]), "assgined", Taksdetail); if (Session["userRole"].ToString() == "ProccessMaintananceEmployee") { notifications.CreateAnotification("A task with detail : " + Taksdetail + " has been established to fix checklist readings", "Manager"); } else { notifications.CreateAnotification("A task with detail : " + Taksdetail + " is fulfilled", "Manager"); } return(RedirectToAction("GetTask")); }