mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
分类管理
This commit is contained in:
@@ -10,7 +10,7 @@ namespace OpenAuth.App
|
||||
/// <summary>
|
||||
/// 分类管理
|
||||
/// </summary>
|
||||
public class CategoryApp :BaseApp<Category>
|
||||
public class CategoryApp:BaseApp<Category>
|
||||
{
|
||||
|
||||
public IEnumerable<Category> Get(string type)
|
||||
@@ -34,7 +34,6 @@ namespace OpenAuth.App
|
||||
UnitWork.Save();
|
||||
}
|
||||
|
||||
|
||||
public void Delete(string[] ids)
|
||||
{
|
||||
UnitWork.Delete<Category>(u => ids.Contains(u.Id));
|
||||
@@ -78,7 +77,6 @@ namespace OpenAuth.App
|
||||
public List<CategoryType> AllTypes()
|
||||
{
|
||||
return UnitWork.Find<CategoryType>(null).ToList();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@@ -55,6 +55,7 @@ namespace OpenAuth.App
|
||||
public void AddMenu(ModuleElement model)
|
||||
{
|
||||
UnitWork.Add(model);
|
||||
UnitWork.Save();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Reference in New Issue
Block a user