public async Task <IActionResult> shootInProgress() { ProductPhotoshootInProgressPagerList photoshootInProgress = await _BadgerApiHelper.GenericGetAsync <ProductPhotoshootInProgressPagerList>("/Photoshoots/inprogress/"); string selectPhotoshootId = "0"; dynamic photoshootInProgressModal = new ExpandoObject(); photoshootInProgressModal.Lists = photoshootInProgress.photoshootsInprogress; photoshootInProgressModal.SelectedPhotoshoot = selectPhotoshootId; return(View("ShootInProgress", photoshootInProgressModal)); }
public async Task <IActionResult> shootInProgress(string selectPhotoshootId) { var singleShoot = await _BadgerApiHelper.GetAsync <ProductPhotoshootInProgressRep>("/Photoshoots/inprogress/" + selectPhotoshootId); ProductPhotoshootInProgressPagerList photoshootInProgress = new ProductPhotoshootInProgressPagerList { photoshootsInprogress = new List <ProductPhotoshootInProgressRep> { singleShoot } }; dynamic photoshootInProgressModal = new ExpandoObject(); photoshootInProgressModal.Lists = photoshootInProgress.photoshootsInprogress; photoshootInProgressModal.SelectedPhotoshoot = selectPhotoshootId; return(View("ShootInProgress", photoshootInProgressModal)); }