CodeLiturgy.Dashboard/BlueWest.Views/Controllers/Data/DataController.cs

67 lines
1.6 KiB
C#

using System.Web.Mvc;
using BlueWest.Data.Auth.Context.Users;
using BlueWest.Views.Utils;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Mvc;
using Controller = Microsoft.AspNetCore.Mvc.Controller;
using Microsoft.AspNetCore.Http;
namespace BlueWest.Views.Controllers
{
[Authorize]
public class DataController : UserController
{
public DataController(ApplicationUserManager userManager, ILogger<UserController> logger) : base(userManager,
logger)
{
_userManager = userManager;
_logger = logger;
}
public async Task<IActionResult> Index()
{
await OnEveryAction();
return View();
}
[ChildActionOnly]
public async Task<IActionResult> Countries()
{
await OnEveryAction();
return View("Countries/Index");
}
[ChildActionOnly]
public async Task<IActionResult> Companies()
{
await OnEveryAction();
return View("Companies/Index");
}
[ChildActionOnly]
public async Task<IActionResult> Banks()
{
await OnEveryAction();
return View("Companies/Index");
}
[ChildActionOnly]
public async Task<IActionResult> Currencies()
{
await OnEveryAction();
return View("Currencies/Index");
}
public override void OnInitialization()
{
SetFooterMenu(LayoutCache.DataRouteRecord.Children);
}
}
}