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