public IHttpActionResult Delete(int id) { try { _estateService.Delete(id); return(Ok()); } catch (Exception ec) { return(BadRequest(ec.Message)); } }