Beispiel #1
0
        public async Task <IActionResult> ProductType()
        {
            ProductTypeViewModel model = new ProductTypeViewModel
            {
                productTypes = await lostAndFoundType.GetProductType(),
                fLang        = _pLang.PerseLang("MasterData/ProductTypeEN.json", "MasterData/ProductTypeBN.json", Request.Cookies["lang"]),
            };

            return(View(model));
        }
        public async Task <IEnumerable <ProductType> > GetAllProductType()
        {
            var productTypes = await lostAndFoundType.GetProductType();

            return(productTypes);
        }