Beispiel #1
0
        private async Task <bool> SaveExisting()
        {
            Dtos.Product product = Mapper.Map <Dtos.Product>(this.WorkModel);
            bool         output  = await _webApiClient.UpdateAsync(Constants.ApiProductsPath, product, product.Id);

            return(output);
        }
Beispiel #2
0
        private async Task <bool> AddNew()
        {
            Dtos.Product product = Mapper.Map <Dtos.Product>(this.WorkModel);
            this.Uri = await _webApiClient.CreateAsync(Constants.ApiProductsPath, product);

            return(this.Uri != null);
        }