public IHttpActionResult GetById(int id) { var offer = _service.GetById(id); if (offer == null) { return(NotFound()); } return(Ok(offer)); }