public ActionResult Delete(string taskId)
 {
     if (_authorizationLogic.IsUserLoggedIn()) // this can also be done with a filter function
     {
         _taskLogic.Delete(taskId);
     }
     return(RedirectToAction("Index")); //Display message about the success of the delete
 }