Пример #1
0
 /// <summary>
 /// POST api/RegisteredSales/{type}/{id}
 /// Create new registered sale.
 /// </summary>
 public async Task <RegisteredSale> CreateAsync(SalesTypeEnum salesType, int salesDocumentId, RegisteredSaleCreate model)
 {
     return(await PostAsync <RegisteredSale, RegisteredSaleCreate>(ResourceUrl + "/" + (int)salesType + "/" + salesDocumentId, model));
 }
Пример #2
0
 /// <summary>
 /// GET api/RegisteredSales/{id}/Expand
 /// Returns registered sales with related entities by Id.
 /// </summary>
 public async Task <RegisteredSaleExpand> RegisteredSalesExpandAsync(SalesTypeEnum type, int registeredSaleId)
 {
     return(await GetAsync <RegisteredSaleExpand>(ResourceUrl + "/" + (int)type + "/" + registeredSaleId + "/Expand"));
 }
Пример #3
0
 /// <summary>
 /// GET api/RegisteredSales/{id}
 /// Method returns registered sale by Id.
 /// </summary>
 public async Task <RegisteredSale> RegisteredSaleAsync(SalesTypeEnum type, int registeredSaleId)
 {
     return(await GetAsync <RegisteredSale>(ResourceUrl + "/" + (int)type + "/" + registeredSaleId));
 }
Пример #4
0
 /// <summary>
 /// POST api/RegisteredSales/{type}/{id}
 /// Create new registered sale.
 /// </summary>
 public RegisteredSale Create(SalesTypeEnum salesType, int salesDocumentId, RegisteredSaleCreate model)
 {
     return(Post <RegisteredSale, RegisteredSaleCreate>(ResourceUrl + "/" + (int)salesType + "/" + salesDocumentId, model));
 }
Пример #5
0
 /// <summary>
 /// GET api/RegisteredSales/{id}/Expand
 /// Returns registered sales with related entities by Id.
 /// </summary>
 public RegisteredSaleExpand RegisteredSalesExpand(SalesTypeEnum type, int registeredSaleId)
 {
     return(Get <RegisteredSaleExpand>(ResourceUrl + "/" + (int)type + "/" + registeredSaleId + "/Expand"));
 }
Пример #6
0
 /// <summary>
 /// GET api/RegisteredSales/{id}
 /// Method returns registered sale by Id.
 /// </summary>
 public RegisteredSale RegisteredSale(SalesTypeEnum type, int registeredSaleId)
 {
     return(Get <RegisteredSale>(ResourceUrl + "/" + (int)type + "/" + registeredSaleId));
 }