fixes GMaps usage & Command creation
This commit is contained in:
parent
49de239344
commit
4999284419
12 changed files with 192 additions and 269 deletions
|
|
@ -705,7 +705,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 (new Yavsc.ViewModels.Manage.SetAddressViewModel { Street1 = user.PostalAddress?.Address } );
|
||||
return View (user.PostalAddress ?? new Location());
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
|
@ -727,7 +727,7 @@ namespace Yavsc.Controllers
|
|||
return RedirectToAction(nameof(Index), new { Message = ManageMessageId.SetAddressSuccess });
|
||||
}
|
||||
ViewBag.GoogleSettings = _googleSettings;
|
||||
return View(new Yavsc.ViewModels.Manage.SetAddressViewModel { Street1 = model.Address});
|
||||
return View(model);
|
||||
}
|
||||
public async Task<IActionResult> PaymentInfo (string id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue