estimate to LaTeX

This commit is contained in:
2016-11-06 02:03:36 +01:00
parent 8d4eb1a9af
commit 51b4ee2286
29 changed files with 1294 additions and 148 deletions

View File

@ -105,7 +105,8 @@ namespace Yavsc.Controllers
Roles = await _userManager.GetRolesAsync(user),
PostalAddress = user.PostalAddress?.Address,
FullName = user.FullName,
Avatar = user.Avatar
Avatar = user.Avatar,
BankInfo = user.BankInfo
};
if (_dbContext.Performers.Any(x => x.PerformerId == user.Id))
{
@ -296,6 +297,21 @@ namespace Yavsc.Controllers
else return Redirect(model.ReturnUrl);
}
[HttpGet,Authorize]
public async Task<IActionResult> AddBankInfo()
{
var user = await _userManager.FindByIdAsync(User.GetUserId());
return View(new AddBankInfoViewModel(
user.BankInfo));
}
[HttpGet,Authorize]
public async Task<IActionResult> SetFullName()
{
var user = await _userManager.FindByIdAsync(User.GetUserId());
return View(user.FullName);
}
//
// POST: /Manage/ChangePassword
[HttpPost]