public async Task <IActionResult> UpdateByGroupId([FromBody] UpdateUserGroupByGroupIdCommand updateUserGroup) { var result = await Mediator.Send(updateUserGroup); if (result.Success) { return(Ok(result.Message)); } return(BadRequest(result.Message)); }
public async Task <IActionResult> UpdateByGroupId([FromBody] UpdateUserGroupByGroupIdCommand updateUserGroup) { return(GetResponseOnlyResultMessage(await Mediator.Send(updateUserGroup))); }