mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-09 19:04:44 +08:00
把有些东西写到极致
This commit is contained in:
@@ -12,13 +12,11 @@ namespace OpenAuth.App
|
||||
{
|
||||
public RevelanceManagerApp ReleManagerApp { get; set; }
|
||||
|
||||
|
||||
public User Get(string account)
|
||||
{
|
||||
return Repository.FindSingle(u => u.Account == account);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 加载一个部门及子部门全部用户
|
||||
/// </summary>
|
||||
@@ -86,11 +84,6 @@ namespace OpenAuth.App
|
||||
return view;
|
||||
}
|
||||
|
||||
public void Delete(string[] ids)
|
||||
{
|
||||
Repository.Delete(u => ids.Contains(u.Id));
|
||||
}
|
||||
|
||||
public void AddOrUpdate(UserView view)
|
||||
{
|
||||
if (string.IsNullOrEmpty(view.OrganizationIds))
|
||||
|
||||
Reference in New Issue
Block a user