public async Task <IActionResult> insertHouse([FromBody] House house) { house.id = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); await _housesService.insertHouse(house); return(StatusCode(StatusCodes.Status201Created, new { id = house.id })); }