コード例 #1
0
        public async Task <IActionResult> OnPost(ProfileInput profile)
        {
            var member = await userManager.GetUserAsync(User);

            var path = await filebaseService.SaveFile(Request.Form.Files[0]);

            await memberInfoSerivce.UpdateUserInfo(new MemberInfo
            {
                MemberId = member.Id,
                Avatart  = path,
                Name     = profile.Name
            });

            return(Page());
        }
コード例 #2
0
 public async Task <string> UploadFile(IFormFile formFile)
 {
     return(await filebaseService.SaveFile(formFile));
 }