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