Пример #1
0
        public ActionResult Show(string slug)
        {
            var model = _portfolioService.Get(slug);

            if (model == null)
            {
                throw new HttpException((int)HttpStatusCode.NotFound, "Portfolio couldn't be not found.");
            }

            return(View(model));
        }
Пример #2
0
        public ActionResult <Domain.Models.Portfolio> Get(string contractId)
        {
            var contract = _portfolioService.Get(contractId);

            return(Ok(contract));
        }
Пример #3
0
 public async Task <IActionResult> GetByPortfolio([FromRoute] Guid portfolioId) =>
 Ok(await _portfolioService.Get(portfolioId));
Пример #4
0
 // GET api/portfolio/shopperid or domainname
 //http://localhost:63222/api/portfolio/5 [FIVEKIDSCATERING.com]
 public List <PortfolioFullDataType> Get(string id)
 {
     return(_portfolioService.Get(id));
 }