每一次都是大放血

This commit is contained in:
yubaolee
2017-11-29 20:49:14 +08:00
parent e36664d5f6
commit b7a72f62c0
80 changed files with 12919 additions and 12884 deletions

View File

@@ -1,70 +0,0 @@

using System;
using System.Web.Mvc;
using Infrastructure;
using OpenAuth.App;
using OpenAuth.Domain;
using OpenAuth.Mvc.Models;
namespace OpenAuth.Mvc.Controllers
{
public class CategoryManagerController : BaseController
{
public CategoryManagerApp App { get; set; }
//
// GET: /UserManager/
[Authenticate]
public ActionResult Index()
{
return View();
}
/// <summary>
/// 加载分类下面的所有分类
/// </summary>
public string Load(string parentId, int page = 1, int rows = 30)
{
return JsonHelper.Instance.Serialize(App.Load(parentId, page, rows));
}
public string LoadForTree()
{
return JsonHelper.Instance.Serialize(App.LoadAll());
}
//添加或修改Category
[HttpPost]
public string Add(Category model)
{
try
{
App.AddOrUpdate(model);
}
catch (Exception ex)
{
Result.Code = 500;
Result.Message = ex.Message;
}
return JsonHelper.Instance.Serialize(Result);
}
[HttpPost]
public string Delete(string[] ids)
{
try
{
App.Delete(ids);
}
catch (Exception e)
{
Result.Code = 500;
Result.Message = e.Message;
}
return JsonHelper.Instance.Serialize(Result);
}
}
}

View File

@@ -2,13 +2,13 @@
using OpenAuth.App;
using OpenAuth.App.SSO;
using OpenAuth.App.ViewModel;
using OpenAuth.Domain;
using OpenAuth.Mvc.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using OpenAuth.Repository.Domain;
namespace OpenAuth.Mvc.Controllers
{

View File

@@ -1,9 +1,9 @@
using Infrastructure;
using OpenAuth.App;
using OpenAuth.Domain;
using OpenAuth.Mvc.Models;
using System;
using System.Web.Mvc;
using OpenAuth.Repository.Domain;
namespace OpenAuth.Mvc.Controllers
{