| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using Microsoft.AspNetCore.Mvc;
- using Abp.AspNetCore.Mvc.Authorization;
- using VberAdmin.Authorization.Accounts;
- using VberAdmin.Controllers;
- using VberAdmin.Query;
- namespace VberAdmin.Web.Controllers;
- [AbpMvcAuthorize]
- public class HomeController : VberAdminControllerBase
- {
- public HomeController(QueryAppService queryApp, IAccountAppService accountApp)
- {
- _queryApp = queryApp;
- _accountApp = accountApp;
- }
- private readonly QueryAppService _queryApp;
- private readonly IAccountAppService _accountApp;
- public ActionResult Index()
- {
- return View();
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> UserProfile()
- {
- var profile = await _accountApp.GetUserProfile(AbpSession.UserId);
- return View(profile);
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> ChangePassword()
- {
- var profile = await _accountApp.GetUserProfile(AbpSession.UserId);
- return View(profile);
- }
- public async Task<ActionResult> Calendar()
- {
- ViewBag.NotifyType = await _queryApp.GetCalendarNotifyTypeSelectStr();
- return View();
- }
- }
|