Пример #1
0
        public ActionResult <string> Get(long id)
        {
            var companyPrice = _companyPriceProvider.GetPrice(id);

            if (companyPrice == null)
            {
                return(NotFound());
            }

            return(companyPrice.ToStringFormat());
        }
Пример #2
0
        public IHttpActionResult Get(long id)
        {
            var companyPrice = _companyPriceProvider.GetPrice(id);

            if (companyPrice == null)
            {
                return(StatusCode(HttpStatusCode.NotFound));
            }

            return(Ok(companyPrice.ToStringFormat()));
        }
Пример #3
0
        public ActionResult <string> Get(long id)
        {
            _logger.Log("NewController is called");

            var companyPrice = _companyPriceProvider.GetPrice(id);

            if (companyPrice == null)
            {
                return(NotFound());
            }

            return(companyPrice.ToStringFormat());
        }