public ActionResult <House> EditHouse([FromBody] House newHouse, string houseId) { try { newHouse.Id = houseId; return(_hs.EditHouse(newHouse)); } catch (System.Exception err) { return(BadRequest(err.Message)); } }
public ActionResult <House> EditHouse([FromBody] House newHouse, string houseId) { try { newHouse.Id = houseId; return(_hs.EditHouse(newHouse)); } catch (System.Exception err) { return(BadRequest(err.Message)); } }