初始化CRICS
This commit is contained in:
16
Service/Implement/SysActiveUserManager.cs
Normal file
16
Service/Implement/SysActiveUserManager.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Domain;
|
||||
|
||||
namespace Service.Implement
|
||||
{
|
||||
public class SysActiveUserManager : GenericManagerBase<SysActiveUser>, ISysActiveUserManager
|
||||
{
|
||||
public SysActiveUser Get(string account, string loginIp)
|
||||
{
|
||||
return CurrentRepository.LoadAll().Where(r => r.Account == account && r.LoginIP == loginIp).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user