/// <summary> /// 查找最新五条数据 /// </summary> /// <returns>list</returns> public static dynamic Find() { try { return(CMS_User_DAL.Find()); } catch (Exception error) { throw error; } }
/// <summary> /// 用户对象分页条件查询 /// </summary> /// <param name="userFilter">用户对象</param> /// <param name="limit">一页显示的数量</param> /// <param name="page">当前第几页</param> /// <returns>Pagination</returns> public static dynamic Find(CMS_User userFilter, int limit, int page) { try { Pagination pagination = CMS_User_DAL.Find(userFilter, limit, page); return(pagination); } catch (Exception ex) { throw ex; } }
/// <summary> /// 查找用户 /// </summary> /// <param name="userFilter">用户对象</param> /// <returns>list</returns> public static dynamic Find(CMS_User userFilter) { using (CMSDatabase_Model cms = new CMSDatabase_Model()) { try { return(CMS_User_DAL.Find(userFilter)); } catch (Exception ex) { throw ex; } } }