Exemplo n.º 1
0
        //FileQueries fileRecord;



        public async Task <IActionResult> Index()
        {
            //var result = fileService.GetAllFilesView();
            var result = await filesValue.GetAllFiles(_db);

            //var fileView = _db.FileRecord.ToList();
            return(View(result));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            var           UserId = HttpContext.Session.GetInt32(SD.UserId);
            FileViewModel fileVM = new FileViewModel()
            {
                FileRecord = await filesValue.GetAllFiles(_db),
                //UserModel = await accountService.GetUser(_db, UserId)
            };

            return(View(fileVM));
        }
        public async Task <IActionResult> Index()
        {
            var UserId         = HttpContext.Session.GetInt32(SD.UserId);
            var claimsIdentity = (ClaimsIdentity)User.Identity;
            var claim          = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier);
            DashboardViewModels dashboardVM = new DashboardViewModels()
            {
                FileRecord = await filesValue.GetAllFiles(_db),
            };

            return(View(dashboardVM));
        }
Exemplo n.º 4
0
        public async Task <IEnumerable <FileRecord> > GetAllFilesView()
        {
            var fileRecordList = await filesValue.GetAllFiles(_db);

            return(fileRecordList);
        }