Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
||||
{
|
||||
public class Country
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
||||
{
|
||||
public class SearchCriteria
|
||||
{
|
||||
#region Properties
|
||||
|
||||
internal int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public int? Skip { get; set; }
|
||||
public int? Take { get; set; }
|
||||
|
||||
public string SortBy { get; set; }
|
||||
public SortingDirections SortDirection { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
||||
{
|
||||
public class SearchResult<TItem>
|
||||
{
|
||||
#region Properties
|
||||
|
||||
public int TotalCount { get; set; }
|
||||
public IEnumerable<TItem> Result { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public SearchResult()
|
||||
{
|
||||
Result = Array.Empty<TItem>();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace GerstITS.Examples.WebClients.Examples.Api
|
||||
{
|
||||
public enum SortingDirections
|
||||
{
|
||||
Ascending = 0,
|
||||
Descending
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user