public async Task <IActionResult> GetProductInfo(int id) { var result = await _printfulService.GetAllProductInfo(id); var total = result.Result; return(Ok(total)); }
public async Task <IActionResult> ProductPage(int id) { var result = await _printfulServices.GetAllProductInfo(id); return(View(result)); }
public async void GetPrice(int id) { var details = await _printfulServices.GetAllProductInfo(id); tempPrice = float.Parse(details.Result.SyncVariants[0].price); }