示例#1
0
 /// <summary>
 /// Inserts the specified model.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>System.Int32.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public static int Insert(AdminLoginModel model)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.Insert(model));
     }
 }
示例#2
0
 /// <summary>
 /// 设置用户激活状态
 /// </summary>
 /// <param name="userId">The user identifier.</param>
 /// <returns>true if XXXX, false otherwise.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public static bool SetUserStatus(int userId)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.SetUserStatus(userId));
     }
 }
示例#3
0
 /// <summary>
 /// 更新最后登录时间
 /// </summary>
 /// <param name="userId">The user identifier.</param>
 /// <returns>true if XXXX, false otherwise.</returns>
 public static bool UpdateLastLoginTime(int userId)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.UpdateLastLoginTime(userId));
     }
 }
示例#4
0
 /// <summary>
 /// 更新信息
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>true if XXXX, false otherwise.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public static bool Update(AdminLoginModel model)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.Update(model));
     }
 }
示例#5
0
 /// <summary>
 /// 修改密码
 /// </summary>
 /// <param name="userId">The user identifier.</param>
 /// <param name="useridentity">The useridentity.</param>
 /// <param name="oldPassword">The old password.</param>
 /// <param name="password">The password.</param>
 /// <returns>true if XXXX, false otherwise.</returns>
 public static bool ChanagePassword(int userId, int useridentity, string oldPassword, string password)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.ChanagePassword(userId, useridentity, oldPassword, password));
     }
 }
示例#6
0
 /// <summary>
 /// 删除管理员
 /// </summary>
 /// <param name="userId">The user identifier.</param>
 /// <returns>true if XXXX, false otherwise.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public static bool Delete(int userId)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.Delete(userId));
     }
 }
示例#7
0
 /// <summary>
 /// 获取管理员列表
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>ResultPageModel.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public static ResultPageModel GetManagerList(SearchModel model)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.GetManagerList(model));
     }
 }
示例#8
0
 /// <summary>
 /// 获取管理员信息
 /// </summary>
 /// <param name="userid">The userid.</param>
 /// <returns>AdminLoginModel.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public static AdminLoginModel GetModel(int userid)
 {
     using (var dal = FactoryDispatcher.ManagerFactory())
     {
         return(dal.GetModel(userid));
     }
 }