Пример #1
0
 /// <summary>
 /// Gets the users by role.
 /// </summary>
 /// <param name="roleName">Name of the role.</param>
 /// <returns></returns>
 /// <remarks></remarks>
 public static IEnumerable<User> GetUsersByRole(string roleName)
 {
     var db = new DataAccess();
     return db.ExecuteView<User>("GetUsersByRole", roleName);
 }
Пример #2
0
 /// <summary>
 /// Gets the users by purchase count range.
 /// </summary>
 /// <param name="minCount">The min count.</param>
 /// <param name="maxCount">The max count.</param>
 /// <returns></returns>
 /// <remarks></remarks>
 public static IEnumerable<User> GetUsersByPurchaseCountRange(int minCount, int maxCount)
 {
     var db = new DataAccess();
     return db.ExecuteView<User>("GetUsersByPurchaseCountRange", minCount, maxCount);
 }