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); }