public async Task <IActionResult> GetUserHouses(Guid id) { if (id == null) { return(BadRequest()); } var user = await userManager.FindByIdAsync(id.ToString()); if (user == null) { return(NotFound()); } var userHouses = _houseRepo.GetUserHouses(id); return(Ok(userHouses)); }