Update to latest code and nugets packages
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user