public async Task <ActionResult> StoreOutfits() { try { return(Json(await _dbdService.GetStoreOutfits(), new JsonSerializerSettings() { Formatting = Formatting.Indented })); } catch { return(Content("Uh oh, we failed to retrieve the shrine from dbd servers :/")); } }
public async Task <ActionResult> StoreOutfits(string branch = "live") { try { var outfits = await _dbdService.GetStoreOutfits(branch); if (outfits == null) { throw new Exception("Invalid response from dbd"); } return(Json(outfits, StoreConverter.Settings)); } catch { return(Content("Uh oh, we failed to retrieve the sto from dbd servers :/")); } }