|
|
@ -4,6 +4,7 @@ using Model.Repository;
|
|
|
|
using Shared;
|
|
|
|
using Shared;
|
|
|
|
using EFMappers;
|
|
|
|
using EFMappers;
|
|
|
|
using Entities;
|
|
|
|
using Entities;
|
|
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Model2Entities;
|
|
|
|
namespace Model2Entities;
|
|
|
|
|
|
|
|
|
|
|
@ -16,66 +17,71 @@ public partial class DbDataManager
|
|
|
|
|
|
|
|
|
|
|
|
public UserRepository(DbDataManager dbDataManager, ILogger<DbDataManager> logger)
|
|
|
|
public UserRepository(DbDataManager dbDataManager, ILogger<DbDataManager> logger)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this._dataManager = dbDataManager;
|
|
|
|
_dataManager = dbDataManager;
|
|
|
|
this._logger = logger;
|
|
|
|
_logger = logger;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<IEnumerable<User>> GetItems(int index, int count, AthleteOrderCriteria? orderingProperty = null, bool descending = false)
|
|
|
|
public async Task<IEnumerable<User>> GetItems(int index, int count, string? orderingProperty = null,
|
|
|
|
|
|
|
|
bool descending = false)
|
|
|
|
|
|
|
|
=> await GetUsers(index, count, this.ToEnum(orderingProperty), descending);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<IEnumerable<User>> GetUsers(int index, int count,
|
|
|
|
|
|
|
|
AthleteOrderCriteria? orderingProperty = null, bool descending = false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetItems with index {index} and count {count}", index, count);
|
|
|
|
_logger.LogInformation($"GetItems with index {index} and count {count}", index, count);
|
|
|
|
_logger.LogInformation($"GetItems with orderingProperty {orderingProperty} and descending {descending}", orderingProperty, descending);
|
|
|
|
_logger.LogInformation($"GetItems with orderingProperty {orderingProperty} and descending {descending}",
|
|
|
|
var users = _dataManager.DbContext.AthletesSet.GetItemsWithFilterAndOrdering(b => true, index, count, orderingProperty, descending).ToModels();
|
|
|
|
orderingProperty, descending);
|
|
|
|
|
|
|
|
var users = _dataManager.DbContext.AthletesSet.IncludeStandardProperties().GetItemsWithFilterAndOrdering(b => true, index, count,
|
|
|
|
|
|
|
|
orderingProperty != AthleteOrderCriteria.None ? orderingProperty : null, descending).ToModels();
|
|
|
|
_logger.LogInformation($"Retrieved {users.Count()} users");
|
|
|
|
_logger.LogInformation($"Retrieved {users.Count()} users");
|
|
|
|
return await Task.FromResult(users);
|
|
|
|
return await Task.FromResult(users);
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
|
|
|
|
return await Task.FromResult<IEnumerable<User>>(new List<User>());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<User?> GetItemById(int id)
|
|
|
|
public async Task<User?> GetItemById(int id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetItemById with id {id}", id);
|
|
|
|
_logger.LogInformation($"GetItemById with id {id}", id);
|
|
|
|
var user = _dataManager.DbContext.AthletesSet.GetItemsWithFilterAndOrdering(b => b.IdAthlete == id, 0, 1, AthleteOrderCriteria.None, false).First().ToModel();
|
|
|
|
var userEntity = await _dataManager.DbContext.AthletesSet.IncludeStandardProperties()
|
|
|
|
|
|
|
|
.SingleOrDefaultAsync(a => a.IdAthlete == id);
|
|
|
|
|
|
|
|
var user = userEntity != null ? userEntity.ToModel() : null;
|
|
|
|
if (user != null)
|
|
|
|
if (user != null)
|
|
|
|
_logger.LogInformation($"Retrieved user with ID {id}");
|
|
|
|
_logger.LogInformation($"Retrieved user with ID {id}");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_logger.LogWarning($"No user found with ID {id}");
|
|
|
|
_logger.LogWarning($"No user found with ID {id}");
|
|
|
|
return await Task.FromResult(user);
|
|
|
|
return await Task.FromResult(user);
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
|
|
|
|
return await Task.FromResult<User?>(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<User?> UpdateItem(int oldItem, User newItem)
|
|
|
|
public async Task<User?> UpdateItem(int oldItem, User newItem)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// try {
|
|
|
|
_logger.LogInformation($"UpdateItem with id {oldItem}", oldItem);
|
|
|
|
// _logger.LogInformation($"UpdateItem with id {oldItem}", oldItem);
|
|
|
|
|
|
|
|
// var updatedUser = (await _dataManager.DbContext.UpdateItem<AthleteEntity, User>(oldItem, newItem, (user, entity) => user.ToEntity(entity)))?.ToModel();
|
|
|
|
var originalEntity = _dataManager.DbContext.AthletesSet.Find(oldItem);
|
|
|
|
// if (updatedUser != null)
|
|
|
|
if (originalEntity == null)
|
|
|
|
// _logger.LogInformation($"Updated user with ID {oldItem}");
|
|
|
|
{
|
|
|
|
// else
|
|
|
|
_logger.LogWarning($"No user found with ID {oldItem}");
|
|
|
|
// _logger.LogWarning($"No user found with ID {oldItem}");
|
|
|
|
return await Task.FromResult<User?>(null);
|
|
|
|
// return await Task.FromResult(updatedUser);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
var originalEntry = _dataManager.DbContext.Entry(originalEntity);
|
|
|
|
// catch (Exception ex)
|
|
|
|
var values = typeof(AthleteEntity).GetProperties().Where(ppty => ppty.Name != "IdAthlete")
|
|
|
|
// {
|
|
|
|
.ToDictionary(ppty => ppty.Name, ppty => ppty.GetValue(newItem.ToEntity()));
|
|
|
|
// _logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
originalEntry.CurrentValues.SetValues(values);
|
|
|
|
// return await Task.FromResult<User?>(null);
|
|
|
|
_dataManager.DbContext.AthletesSet.Attach(originalEntity);
|
|
|
|
// }
|
|
|
|
_dataManager.DbContext.Entry(originalEntity).State = EntityState.Modified;
|
|
|
|
throw new NotImplementedException();
|
|
|
|
_dataManager.DbContext.SaveChanges();
|
|
|
|
|
|
|
|
var updatedUser = originalEntity.ToModel();
|
|
|
|
|
|
|
|
if (updatedUser != null)
|
|
|
|
|
|
|
|
_logger.LogInformation($"Updated user with ID {oldItem}");
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
_logger.LogWarning($"No user found with ID {oldItem}");
|
|
|
|
|
|
|
|
return await Task.FromResult(updatedUser);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<User?> AddItem(User item)
|
|
|
|
public async Task<User?> AddItem(User item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation("Adding new user");
|
|
|
|
_logger.LogInformation("Adding new user");
|
|
|
|
var addedUser = (await _dataManager.DbContext.AddItem(item.ToEntity()))?.ToModel();
|
|
|
|
var addedUser = (await _dataManager.DbContext.AddItem(item.ToEntity()))?.ToModel();
|
|
|
|
if (addedUser != null)
|
|
|
|
if (addedUser != null)
|
|
|
@ -83,17 +89,12 @@ public partial class DbDataManager
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_logger.LogError("Failed to add user");
|
|
|
|
_logger.LogError("Failed to add user");
|
|
|
|
return await Task.FromResult(addedUser);
|
|
|
|
return await Task.FromResult(addedUser);
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
|
|
|
|
return await Task.FromResult<User?>(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> DeleteItem(int item)
|
|
|
|
public async Task<bool> DeleteItem(int item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation($"DeleteItem with id {item}", item);
|
|
|
|
_logger.LogInformation($"DeleteItem with id {item}", item);
|
|
|
|
var deleted = await _dataManager.DbContext.DeleteItem<AthleteEntity>(item);
|
|
|
|
var deleted = await _dataManager.DbContext.DeleteItem<AthleteEntity>(item);
|
|
|
|
if (deleted)
|
|
|
|
if (deleted)
|
|
|
@ -101,61 +102,107 @@ public partial class DbDataManager
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_logger.LogWarning($"No user found with ID {item}");
|
|
|
|
_logger.LogWarning($"No user found with ID {item}");
|
|
|
|
return await Task.FromResult(deleted);
|
|
|
|
return await Task.FromResult(deleted);
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
|
|
|
|
return await Task.FromResult(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<int> GetNbItems()
|
|
|
|
public async Task<int> GetNbItems()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation("GetNbItems");
|
|
|
|
_logger.LogInformation("GetNbItems");
|
|
|
|
var nbItems = _dataManager.DbContext.AthletesSet.Count();
|
|
|
|
var nbItems = _dataManager.DbContext.AthletesSet.Count();
|
|
|
|
_logger.LogInformation($"Retrieved {nbItems} users");
|
|
|
|
_logger.LogInformation($"Retrieved {nbItems} users");
|
|
|
|
return await Task.FromResult(nbItems);
|
|
|
|
return await Task.FromResult(nbItems);
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
public async Task<IEnumerable<User>> GetAllAthletes(int index, int count, AthleteOrderCriteria? criteria,
|
|
|
|
return await Task.FromResult(0);
|
|
|
|
bool descending = false)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetAllAthletes with index {index} and count {count}", index, count);
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetAllAthletes with criteria {criteria} and descending {descending}", criteria,
|
|
|
|
|
|
|
|
descending);
|
|
|
|
|
|
|
|
var athletes = _dataManager.DbContext.AthletesSet.IncludeStandardProperties()
|
|
|
|
|
|
|
|
.GetItemsWithFilterAndOrdering(a => a.IsCoach == false, index, count,
|
|
|
|
|
|
|
|
criteria != AthleteOrderCriteria.None ? criteria : null, descending).ToModels();
|
|
|
|
|
|
|
|
_logger.LogInformation($"Retrieved {athletes.Count()} athletes");
|
|
|
|
|
|
|
|
return await Task.FromResult(athletes);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<IEnumerable<User>> GetAllCoaches(int index, int count, AthleteOrderCriteria? criteria,
|
|
|
|
|
|
|
|
bool descending = false)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetAllCoaches with index {index} and count {count}", index, count);
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetAllCoaches with criteria {criteria} and descending {descending}", criteria,
|
|
|
|
|
|
|
|
descending);
|
|
|
|
|
|
|
|
var coaches = _dataManager.DbContext.AthletesSet.IncludeStandardProperties()
|
|
|
|
|
|
|
|
.GetItemsWithFilterAndOrdering(a => a.IsCoach, index, count,
|
|
|
|
|
|
|
|
criteria != AthleteOrderCriteria.None ? criteria : null, descending).ToModels();
|
|
|
|
|
|
|
|
_logger.LogInformation($"Retrieved {coaches.Count()} coaches");
|
|
|
|
|
|
|
|
return await Task.FromResult(coaches);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<IEnumerable<User>> GetUsers(int index, int count, AthleteOrderCriteria? criteria, bool descending = false)
|
|
|
|
public async Task<bool> AddFriend(User user, User friend)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
_logger.LogInformation($"Attempting to add friend: User {user.Id} adding Friend {friend.Id}");
|
|
|
|
_logger.LogInformation($"GetUsers with index {index} and count {count}", index, count);
|
|
|
|
var userEntity = _dataManager.DbContext.AthletesSet.IncludeStandardProperties().FirstOrDefault(a => a.IdAthlete == user.Id);
|
|
|
|
_logger.LogInformation($"GetUsers with criteria {criteria} and descending {descending}", criteria, descending);
|
|
|
|
var friendEntity = _dataManager.DbContext.AthletesSet.IncludeStandardProperties().FirstOrDefault(a => a.IdAthlete == friend.Id);
|
|
|
|
var users = _dataManager.DbContext.AthletesSet.GetItemsWithFilterAndOrdering(a => a.IsCoach == false, index, count, criteria, descending).ToModels();
|
|
|
|
if (userEntity == null || friendEntity == null)
|
|
|
|
_logger.LogInformation($"Retrieved {users.Count()} users");
|
|
|
|
{
|
|
|
|
return await Task.FromResult(users);
|
|
|
|
_logger.LogWarning($"User or friend not found: User {user.Id}, Friend {friend.Id}");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
|
|
|
|
if (userEntity.Followings.All(f => f.FollowingId != friend.Id))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
userEntity.Followings.Add(new FriendshipEntity
|
|
|
|
return await Task.FromResult<IEnumerable<User>>(new List<User>());
|
|
|
|
{ FollowingId = friend.Id, FollowerId = user.Id, StartDate = DateTime.Now });
|
|
|
|
|
|
|
|
await _dataManager.DbContext.SaveChangesAsync();
|
|
|
|
|
|
|
|
_logger.LogInformation($"Successfully added friend: User {user.Id} added Friend {friend.Id}");
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> AddFriend(User user, User friend)
|
|
|
|
_logger.LogInformation($"Friendship already exists: User {user.Id} and Friend {friend.Id}");
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<bool> RemoveFriend(User user, User friend)
|
|
|
|
public async Task<bool> RemoveFriend(User user, User friend)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
_logger.LogInformation($"Attempting to remove friend: User {user.Id} removing Friend {friend.Id}");
|
|
|
|
|
|
|
|
var userEntity = user.ToEntity();
|
|
|
|
|
|
|
|
var friendEntity = friend.ToEntity();
|
|
|
|
|
|
|
|
if (userEntity == null || friendEntity == null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogWarning($"User or friend not found: User {user.Id}, Friend {friend.Id}");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var friendship = userEntity.Followings.FirstOrDefault(f => f.FollowingId == friend.Id);
|
|
|
|
|
|
|
|
if (friendship != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
userEntity.Followings.Remove(friendship);
|
|
|
|
|
|
|
|
await _dataManager.DbContext.SaveChangesAsync();
|
|
|
|
|
|
|
|
_logger.LogInformation($"Successfully removed friend: User {user.Id} removed Friend {friend.Id}");
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"Friendship does not exist: User {user.Id} and Friend {friend.Id}");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Task<IEnumerable<User>> GetFriends(User user, int index, int count, AthleteOrderCriteria? criteria, bool descending = false)
|
|
|
|
public Task<IEnumerable<User>> GetFriends(User user, int index, int count, AthleteOrderCriteria? criteria,
|
|
|
|
|
|
|
|
bool descending = false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
_logger.LogInformation($"GetFriends with index {index} and count {count}", index, count);
|
|
|
|
_logger.LogInformation($"GetFriends with index {index} and count {count}", index, count);
|
|
|
|
_logger.LogInformation($"GetFriends with criteria {criteria} and descending {descending}", criteria, descending);
|
|
|
|
_logger.LogInformation($"GetFriends with criteria {criteria} and descending {descending}", criteria,
|
|
|
|
var friends = _dataManager.DbContext.AthletesSet.GetItemsWithFilterAndOrdering(a => a.IdAthlete == user.Id, index, count, criteria, descending).ToModels();
|
|
|
|
descending);
|
|
|
|
|
|
|
|
var friends = _dataManager.DbContext.AthletesSet.IncludeStandardProperties()
|
|
|
|
|
|
|
|
.GetItemsWithFilterAndOrdering(a => a.Followers.Any(f => f.FollowingId == user.Id), index, count,
|
|
|
|
|
|
|
|
criteria, descending).ToModels();
|
|
|
|
_logger.LogInformation($"Retrieved {friends.Count()} friends");
|
|
|
|
_logger.LogInformation($"Retrieved {friends.Count()} friends");
|
|
|
|
return Task.FromResult(friends);
|
|
|
|
return Task.FromResult(friends);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -168,38 +215,13 @@ public partial class DbDataManager
|
|
|
|
|
|
|
|
|
|
|
|
public Task<int> GetNbFriends(User user)
|
|
|
|
public Task<int> GetNbFriends(User user)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetNbFriends with user {user}", user);
|
|
|
|
_logger.LogInformation($"GetNbFriends with user {user}", user);
|
|
|
|
var nbFriends = _dataManager.DbContext.AthletesSet.Count(a => a.IdAthlete == user.Id);
|
|
|
|
var nbFriends = _dataManager.DbContext.AthletesSet
|
|
|
|
|
|
|
|
.GetItemsWithFilterAndOrdering(a => a.IdAthlete == user.Id, 0, int.MaxValue,
|
|
|
|
|
|
|
|
AthleteOrderCriteria.None, false).First().Followings.Count();
|
|
|
|
_logger.LogInformation($"Retrieved {nbFriends} friends");
|
|
|
|
_logger.LogInformation($"Retrieved {nbFriends} friends");
|
|
|
|
return Task.FromResult(nbFriends);
|
|
|
|
return Task.FromResult(nbFriends);
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
|
|
|
|
return Task.FromResult(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Task<IEnumerable<User>> GetItems(int index, int count, AthleteOrderCriteria orderingProperty, bool descending = false)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetItems with index {index} and count {count}", index, count);
|
|
|
|
|
|
|
|
_logger.LogInformation($"GetItems with orderingProperty {orderingProperty} and descending {descending}", orderingProperty, descending);
|
|
|
|
|
|
|
|
var users = _dataManager.DbContext.AthletesSet.GetItemsWithFilterAndOrdering(b => true, index, count, orderingProperty, descending).ToModels();
|
|
|
|
|
|
|
|
_logger.LogInformation($"Retrieved {users.Count()} users");
|
|
|
|
|
|
|
|
return Task.FromResult(users);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogError(ex.Message, ex.InnerException, ex.StackTrace);
|
|
|
|
|
|
|
|
return Task.FromResult<IEnumerable<User>>(new List<User>());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Task<IEnumerable<User>> GetItems(int index, int count, string? orderingProperty = null, bool descending = false)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|