//ADDED BY KENNY****************************************************************************** public List <UserFollowingRel> GetAllFanInfoByFanPagination(int Id, UserFollowingRelSortAddRequest model) { List <UserFollowingRel> list = new List <UserFollowingRel>(); DataProvider.ExecuteCmd("dbo.Blogs_UserFollowingRel_SelectAllByFollowingByUserIdPagination", inputParamMapper : delegate(SqlParameterCollection paramCollection) { paramCollection.AddWithValue("@followingByUserId", Id); paramCollection.AddWithValue("@PageNumber", model.PageNumber); paramCollection.AddWithValue("@input", model.Input); }, singleRecordMapper: (IDataReader reader, short set) => { list.Add(DataMapper <UserFollowingRel> .Instance.MapToObject(reader)); }); return(list); }
//ADDED BY PATRIC****************************************************************************** public List <UserFollowingRel> GetAllFanInfoByAthlete(UserFollowingRelSortAddRequest model) { List <UserFollowingRel> list = new List <UserFollowingRel>(); DataProvider.ExecuteCmd("dbo.Blogs_UserFollowingRel_SelectAllInfoByFollowedByUserId", inputParamMapper : delegate(SqlParameterCollection paramCollection) { paramCollection.AddWithValue("@followedByUserId", _authService.GetCurrentUserId()); paramCollection.AddWithValue("@pageNumber", model.PageNumber); paramCollection.AddWithValue("@columnName", model.ColumnName); paramCollection.AddWithValue("@checked", model.Checked); paramCollection.AddWithValue("@input", model.Input); paramCollection.AddWithValue("@recordsPerPage", model.RecordsPerPage); }, singleRecordMapper : delegate(IDataReader reader, short set) { list.Add(DataMapper <UserFollowingRel> .Instance.MapToObject(reader)); }); return(list); }