2022-10-27 20:13:02 +03:00
|
|
|
using System.Web.Mvc;
|
|
|
|
using BlueWest.Data.Auth.Context.Users;
|
2022-09-26 04:05:23 +03:00
|
|
|
using BlueWest.Views.Utils;
|
2022-10-27 20:13:02 +03:00
|
|
|
using Microsoft.AspNetCore.Authentication.Cookies;
|
2022-09-26 04:05:23 +03:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2022-10-27 20:13:02 +03:00
|
|
|
using Controller = Microsoft.AspNetCore.Mvc.Controller;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
2022-09-26 04:05:23 +03:00
|
|
|
|
|
|
|
namespace BlueWest.Views.Controllers
|
|
|
|
{
|
2022-10-27 20:13:02 +03:00
|
|
|
[Authorize]
|
|
|
|
|
|
|
|
public class DataController : UserController
|
2022-09-26 04:05:23 +03:00
|
|
|
{
|
2022-10-27 20:13:02 +03:00
|
|
|
|
|
|
|
public DataController(ApplicationUserManager userManager, ILogger<UserController> logger) : base(userManager,
|
|
|
|
logger)
|
|
|
|
{
|
|
|
|
_userManager = userManager;
|
|
|
|
_logger = logger;
|
|
|
|
}
|
|
|
|
|
|
|
|
public async Task<IActionResult> Index()
|
2022-09-26 04:05:23 +03:00
|
|
|
{
|
2022-10-27 20:13:02 +03:00
|
|
|
await OnEveryAction();
|
2022-09-26 04:05:23 +03:00
|
|
|
return View();
|
|
|
|
}
|
|
|
|
|
2022-10-27 20:13:02 +03:00
|
|
|
[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);
|
|
|
|
}
|
2022-09-26 04:05:23 +03:00
|
|
|
}
|
2022-10-27 20:13:02 +03:00
|
|
|
|
2022-09-26 04:05:23 +03:00
|
|
|
}
|