예제 #1
0
        public async Task <IActionResult> Upload(MaterialUploadViewModel input)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.View(input));
            }

            var user = await this.UserManager.GetUserAsync(this.User);

            var result = await MaterialsService.UploadAsync(input, user);

            return(this.RedirectToAction("All"));
        }