public ActionResult <string> DeleteHouse(string houseId) { try { _hs.DeleteHouse(houseId); return(Ok("House successfully deleted")); } catch (System.Exception err) { return(BadRequest(err.Message)); } }
public ActionResult <string> DeleteHouse(string houseId) { try { _hs.DeleteHouse(houseId); return(Ok("House successfully deleted")); } catch (System.Exception err) { return(BadRequest(err.Message)); } }