示例#1
0
        public async Task <ActionResult> AddUpdateTask(TaskDTO task)
        {
            try
            {
                await _taskService.AddUpdateTask(task);

                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            catch
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }
        }