using GerstITS.Web.WebClients; namespace GerstITS.Examples.WebClients.Examples.Api; public interface ICustomer : IWebService { [WebMethod(WebMethods.Get), ResourceUrl("Customer/{id}"), HttpHeader(Name = "X-Client", Value = "GerstITS.Examples.WebClient")] Customer Get(int id); [WebMethod(WebMethods.Post), ResourceUrl("Customer/Search")] SearchResult Search(CustomerSearchCriteria criteria); [WebMethod(WebMethods.Post), ResourceUrl("Customer")] Customer Create(Customer model); [WebMethod(WebMethods.Put), ResourceUrl("Customer")] Customer Update(Customer model); [WebMethod(WebMethods.Delete), ResourceUrl("Customer/{id}")] bool Delete(int id); [WebMethod(WebMethods.Get), ResourceUrl("Customer/{id}/Notes")] IEnumerable GetNotes(int id); [WebMethod(WebMethods.Post), ResourceUrl("Customer/{id}/Notes")] CustomerNote AddNote(int id, CustomerNote note); }