public ActionResult <string> Get(long id) { var companyPrice = _companyPriceProvider.GetPrice(id); if (companyPrice == null) { return(NotFound()); } return(companyPrice.ToStringFormat()); }
public IHttpActionResult Get(long id) { var companyPrice = _companyPriceProvider.GetPrice(id); if (companyPrice == null) { return(StatusCode(HttpStatusCode.NotFound)); } return(Ok(companyPrice.ToStringFormat())); }
public ActionResult <string> Get(long id) { _logger.Log("NewController is called"); var companyPrice = _companyPriceProvider.GetPrice(id); if (companyPrice == null) { return(NotFound()); } return(companyPrice.ToStringFormat()); }