[WIP] SetAddress
This commit is contained in:
parent
1ced34774c
commit
b3b7d08e71
1 changed files with 2 additions and 2 deletions
|
|
@ -714,7 +714,7 @@ namespace Yavsc.Controllers
|
|||
var uid = User.GetUserId();
|
||||
var user = await _dbContext.Users.Include(u=>u.PostalAddress).SingleAsync(u=>u.Id==uid);
|
||||
ViewBag.GoogleSettings = _googleSettings;
|
||||
return View(user.PostalAddress);
|
||||
return View (new Yavsc.ViewModels.Manage.SetAddressViewModel { Street1 = user.PostalAddress?.Address } );
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
|
@ -736,7 +736,7 @@ namespace Yavsc.Controllers
|
|||
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.SetAddressSuccess });
|
||||
}
|
||||
ViewBag.GoogleSettings = _googleSettings;
|
||||
return View(model);
|
||||
return View(new Yavsc.ViewModels.Manage.SetAddressViewModel { Street1 = model.Address});
|
||||
}
|
||||
public async Task<IActionResult> PaymentInfo (string id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue