public ActionResult <IEnumerable <House> > Get() { try { return(Ok(_service.Get())); } catch (System.Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <IEnumerable <House> > Get() { try { return(Ok(_ds.Get())); } catch (Exception err) { return(BadRequest(err.Message)); } }