public async Task <ActionResult <SuccessResponseApiModel <string> > > ChangeProgressStatus(string id, [FromBody] ToDoTaskChangeProgressStatusApiModel model) { model.Id = model.Id ?? id; var userId = GetUserId(); await _service.ChangeProgressStatus(userId, model); var taskResult = await _service.Get(model.Id); if (model.ProgressStatus == ToDoTaskStatusEnum.Cancelled) { await BroadcastMessageSignalR(NotificationTypeEnum.ChangeProgressStatus, taskResult, false, taskResult.ToUserId); } else { await BroadcastMessageSignalR(NotificationTypeEnum.ChangeProgressStatus, taskResult, false, taskResult.FromUserId); } return(SuccessResult(new SuccessResponseApiModel <string>() { Response = "success", Id = model.Id })); }