public async Task <ActionResult> AddUpdateTask(TaskDTO task) { try { await _taskService.AddUpdateTask(task); return(Json(true, JsonRequestBehavior.AllowGet)); } catch { return(Json(false, JsonRequestBehavior.AllowGet)); } }