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)); }
public ActionResult <Domain.Models.Portfolio> Get(string contractId) { var contract = _portfolioService.Get(contractId); return(Ok(contract)); }
public async Task <IActionResult> GetByPortfolio([FromRoute] Guid portfolioId) => Ok(await _portfolioService.Get(portfolioId));
// GET api/portfolio/shopperid or domainname //http://localhost:63222/api/portfolio/5 [FIVEKIDSCATERING.com] public List <PortfolioFullDataType> Get(string id) { return(_portfolioService.Get(id)); }