public async Task <UserDto> GetByIdAsync(Validated <int> id) { var user = await _context.Users.FindAsync(id.Value); return(user.ToDto <UserDto>()); }