//GET: api/estate/5 public IHttpActionResult Get(int id) { try { return(Ok(_estateService.GetById(id))); } catch (Exception ec) { return(BadRequest(ec.Message)); } }