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 UserProfile() { var profile = await _accountApp.GetUserProfile(AbpSession.UserId); return View(profile); } [AbpMvcAuthorize] public async Task ChangePassword() { var profile = await _accountApp.GetUserProfile(AbpSession.UserId); return View(profile); } public async Task Calendar() { ViewBag.NotifyType = await _queryApp.GetCalendarNotifyTypeSelectStr(); return View(); } }