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 logger) : base(userManager, logger) { _userManager = userManager; _logger = logger; } public async Task Index() { await OnEveryAction(); return View(); } [ChildActionOnly] public async Task Countries() { await OnEveryAction(); return View("Countries/Index"); } [ChildActionOnly] public async Task Companies() { await OnEveryAction(); return View("Companies/Index"); } [ChildActionOnly] public async Task Banks() { await OnEveryAction(); return View("Companies/Index"); } [ChildActionOnly] public async Task Currencies() { await OnEveryAction(); return View("Currencies/Index"); } public override void OnInitialization() { SetFooterMenu(LayoutCache.DataRouteRecord.Children); } } }