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()); }
public async Task <string> UploadFile(IFormFile formFile) { return(await filebaseService.SaveFile(formFile)); }