예제 #1
0
        public async Task <IActionResult> AnimalInfo()
        {
            AnimalViewModel model = new AnimalViewModel
            {
                animals = await lostAndFoundType.GetAnimals(),
                fLang   = _aLang.PerseLang("MasterData/AnimalEN.json", "MasterData/AnimalBN.json", Request.Cookies["lang"]),
            };

            return(View(model));
        }
        public async Task <IEnumerable <Animal> > GetAnimals()
        {
            var animals = await lostAndFoundType.GetAnimals();

            return(animals);
        }