public static ListEx <Community> GetList(CommunitiesFilter f)
        {
            Database  db      = (new DatabaseProviderFactory()).CreateDefault();
            DbCommand command = db.GetStoredProcCommand("p_Communities_GetList",
                                                        f.Name.Trim(),
                                                        f.Paging.CurrentPage,
                                                        f.Paging.RecordsPerPage);

            command.CommandTimeout = DataBaseSettings.SqlCommandTimeout;
            using (IDataReader r = db.ExecuteReader(command))
            {
                return(new ListEx <Community>(r, x => new Community(x)));
            }
        }
 public static ListEx <Community> GetList(CommunitiesFilter f)
 {
     return(Communities.GetList(f));
 }