public async Task <JsonResult> UpdateStatusTaskItem(TaskItemModel model) { SendMessageResponse rs = null; try { TaskItemDto dto = new TaskItemDto(); dto = _mapper.Map <TaskItemDto>(model); dto.IsFullControl = false; if (CurrentUser.HavePermission(EnumModulePermission.Task_FullControl)) { dto.IsFullControl = true; } dto.ModifiedBy = CurrentUser.Id; dto.ModifiedDate = DateTime.Now; rs = await _taskItemService.UpdateStatusTaskItem(dto); } catch (Exception ex) { _loggerServices.WriteError(ex.ToString()); } return(Json(rs, JsonRequestBehavior.AllowGet)); }