示例#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());
        }