mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-12-21 10:59:46 +08:00
调整程序框架
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.App.DTO;
|
||||
using OpenAuth.Domain.Service;
|
||||
using OpenAuth.Infrastructure.Repository;
|
||||
using OpenAuth.Repository.Repository;
|
||||
|
||||
namespace OpenAuth.Web.Controllers
|
||||
{
|
||||
|
||||
20
OpenAuth.Web/Controllers/ButtonController.cs
Normal file
20
OpenAuth.Web/Controllers/ButtonController.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace OpenAuth.Web.Controllers
|
||||
{
|
||||
public class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Button/
|
||||
|
||||
public ActionResult List()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Mvc;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.App.DTO;
|
||||
using OpenAuth.Domain.Service;
|
||||
using OpenAuth.Infrastructure.Repository;
|
||||
|
||||
namespace OpenAuth.Web.Controllers
|
||||
{
|
||||
@@ -16,10 +11,8 @@ namespace OpenAuth.Web.Controllers
|
||||
|
||||
public ActionResult LeftMenu()
|
||||
{
|
||||
var service = new MenuService(new UserRepository());
|
||||
MenuApp app = new MenuApp(service);
|
||||
var request = new MenuForUserRequest {UserId = LoginCacheApp.GetLogin().UserId};
|
||||
var response = app.LoadFor(request);
|
||||
MenuApp app = new MenuApp(new MenuService());
|
||||
var response = app.LoadMenus();
|
||||
return PartialView(response);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user