/// <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)); }
/// <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")); }
/// <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)); }
/// <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)); }
/// <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")); }
/// <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)); }