Example #1
0
 public IActionResult CompleteTask(int taskId)
 {
     try
     {
         itaskBusiness.updateincompleteTask(taskId);
         return(Json(new
         {
             success = true
         }));
     }
     catch (Exception ex)
     {
         return(Json(new
         {
             success = false,
         }));
     }
 }
Example #2
0
 public IActionResult updateCompleteTask(int TaskId)
 {
     itaskBusiness.updateincompleteTask(TaskId);
     return(RedirectToAction("dashboard"));
 }