Exemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            DocumentTypeViewModel model = new DocumentTypeViewModel
            {
                documentTypes = await lostAndFoundType.GetDocumentTypes(),
                fLang         = _lang.PerseLang("MasterData/DocumentTypeEN.json", "MasterData/DocumentTypeBN.json", Request.Cookies["lang"]),
            };

            return(View(model));
        }
        public async Task <IEnumerable <DocumentType> > GetAllDocumentType()
        {
            var documentTypes = await lostAndFoundType.GetDocumentTypes();

            return(documentTypes);
        }