public IActionResult UpdateTaskTargetDate(int taskId, DateTime targetCompletionDate) { try { itaskBusiness.UpdateTaskTargetDate(taskId, targetCompletionDate); return(Json(new { success = true, data = "Success" })); } catch (Exception ex) { return(Json(new { success = false, data = "Error" })); } }