public async Task <IActionResult> DeleteUser([FromBody] RoleToUserDto dto) { dto.CurrentUserId = UserIdentity.UserId; bool res = await _roleService.DeleteUserAsync(dto); return(Ok(res)); }
public async Task <bool> DeleteUserAsync([FromBody] RoleToUserDto dto) { return(await _roleService.DeleteUserAsync(dto)); }