Exemplo n.º 1
0
        public ActionResult <string> Get(long id)
        {
            var companyPrice = _companyPriceProvider.GetPrice(id);

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

            return(companyPrice.ToStringFormat());
        }
Exemplo n.º 2
0
        public IHttpActionResult Get(long id)
        {
            var companyPrice = _companyPriceProvider.GetPrice(id);

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

            return(Ok(companyPrice.ToStringFormat()));
        }
Exemplo n.º 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());
        }