BootstrapAdmin/Bootstrap.DataAccess/Helper/LoginHelper.cs

27 lines
722 B
C#
Raw Normal View History

using Longbow.Data;
2019-05-01 16:46:24 +08:00
using Longbow.Web.Mvc;
using PetaPoco;
namespace Bootstrap.DataAccess
{
/// <summary>
///
/// </summary>
public static class LoginHelper
{
/// <summary>
///
/// </summary>
/// <param name="userName"></param>
/// <returns></returns>
public static bool Log(LoginUser user) => DbContextManager.Create<LoginUser>().Log(user);
/// <summary>
/// 查询所有登录日志
/// </summary>
/// <param name="po"></param>
/// <param name="ip"></param>
public static Page<LoginUser> Retrieves(PaginationOption po, string ip) => DbContextManager.Create<LoginUser>().Retrieves(po, ip);
}
}