public ActionResult Comment(CommentViewModel comment, string taskId)
 {
     if (_authorizationLogic.IsUserLoggedIn() && taskId != null && comment.Text != null) // this can also be done with a filter function
     {
         _taskLogic.AddTaskComment(taskId, comment);
         return(View(_taskLogic.GetTaskComments(taskId))); //show valiation messages of server side validation failed else update comments
     }
     return(RedirectToAction("Index"));
 }