public async Task <ActionResult <SuccessResponseApiModel <string> > > AddAllUsers([FromBody] ToDoTaskAddApiModel model) { if (model.FromUserId == null) { model.FromUserId = GetUserId(); } var models = await _service.AddForAll(model); if (models != null && models.Count > 0) { foreach (var item in models) { await BroadcastMessageSignalR(NotificationTypeEnum.ModelAdd, item, false, item.ToUserId); } } return(SuccessResult(new SuccessResponseApiModel <string>() { Response = "success" })); }