Update to latest code and nugets packages

This commit is contained in:
2026-07-03 14:43:35 +02:00
parent 5530dc915e
commit 3a36978997
25 changed files with 339 additions and 116 deletions
@@ -1,26 +0,0 @@
using GerstITS.Web.WebClients;
namespace GerstITS.Examples.WebClients.Examples.Api;
public interface ICountry : IWebService
{
[WebMethod(WebMethods.Get),
ResourceUrl("Country/{id}")]
Country Get(int id);
[WebMethod(WebMethods.Get),
ResourceUrl("Country/Search")]
SearchResult<Country> Search(SearchCriteria criteria);
[WebMethod(WebMethods.Post),
ResourceUrl("Country")]
Country Create(Country model);
[WebMethod(WebMethods.Put),
ResourceUrl("Country")]
void Update(Country model);
[WebMethod(WebMethods.Delete),
ResourceUrl("Country/{id}")]
void Delete(int id);
}
@@ -1,11 +0,0 @@
namespace GerstITS.Examples.WebClients.Examples.Api;
public class Country
{
#region Properties
public int Id { get; set; }
public string Name { get; set; }
#endregion
}
@@ -1,17 +0,0 @@
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
}
@@ -7,7 +7,7 @@ internal sealed class ExampleApiClientCreatingRule : RestApiClientCreationRuleBa
{
#region Properties
protected override Type[] SupportedTypes => new[] { typeof(ICountry) };
protected override Type[] SupportedTypes => new[] { typeof(ICustomer) };
#endregion