Mini.Crm/Mini.Web/Controllers/HomeController.cs

57 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Mini.Model;
using Mini.Model.Entity;
using Mini.Services;
using Mini.Services.Bas;
using Mini.Web.Models;
namespace Mini.Web.Controllers
{
public class HomeController : Controller
{
private readonly IBasLeftMenuService _basLeftMenuService;
private readonly ICacheService _cacheservice;
public HomeController(IBasLeftMenuService basLeftMenuService, ICacheService cacheservice)
{
this._basLeftMenuService = basLeftMenuService;
this._cacheservice = cacheservice;
}
public IActionResult Index()
{
object ss = _basLeftMenuService.GetTreeList_leftMenu();
return Redirect("/Admin/Account/LogOn");
}
public IActionResult About()
{
ViewData["Message"] = "Your application description page.";
return View();
}
public IActionResult Contact()
{
ViewData["Message"] = "Your contact page.";
return View();
}
public IActionResult Privacy()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}