Example #1
0
        public async Task <ActionResult> Create()
        {
            ViewBag.Items = await EquipmentFacade.GetAllItemsAsync();

            ViewBag.Monsters = await MonsterFacade.GetAllMonstersAsync();

            return(View("~/Views/Admin/Quest/Create.cshtml"));
        }
        // GET: DashBoard
        public async Task <ActionResult> Index()
        {
            var itemsList = (await EquipmentFacade.GetAllItemsAsync()).ToList();

            ViewBag.Items     = itemsList.Count(a => a.ShopId == null);
            ViewBag.ShopItems = itemsList.Count(a => a.ShopId != null);
            ViewBag.Monsters  = (await MonsterFacade.GetAllMonstersAsync()).Count();
            ViewBag.Quests    = (await QuestFacade.GetAllQuestsAsync()).Count();
            ViewBag.Mini      = (await MiniLocationFacade.GetAllItemsAsync()).Count();
            ViewBag.Locations = (await LocationFacade.GetAllAsync()).Count();
            return(View());
        }