Esempio n. 1
0
 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 :/"));
     }
 }
Esempio n. 2
0
        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 :/"));
            }
        }