public IActionResult Post([FromBody] HouseViewModel house) { var userId = HttpContext.User.Claims.First().Value; house.AppUserId = Guid.Parse(userId); var savedHouse = _houseRepo.AddHouse(house); //return Ok(savedHouse); return(CreatedAtAction(nameof(GetById), new { id = savedHouse.Id }, savedHouse)); }