예제 #1
0
        public IActionResult Index()
        {
            DateTime now = DateTime.UtcNow;

            ViewBag.Files          = files.All().Where(f => f.UserId == CurrentUserId()).Select(f => new FileView(f)).ToArray();
            @ViewData["UserEmail"] = User.Identity.Name;
            return(View());
        }
        public IActionResult All()
        {
            var fileDtos = _service.All().ToList();

            return(Ok(fileDtos));
        }