コード例 #1
0
        public IHttpActionResult GetById(int id)
        {
            var offer = _service.GetById(id);

            if (offer == null)
            {
                return(NotFound());
            }
            return(Ok(offer));
        }