BootstrapAdmin/Bootstrap.DataAccess/Helper/LoginHelper.cs

26 lines
669 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>
2019-05-01 16:46:24 +08:00
public static Page<LoginUser> Retrieves(PaginationOption po) => DbContextManager.Create<LoginUser>().Retrieves(po);
}
}