コード例 #1
0
        public async Task <IHttpActionResult> UpadateTaxAsync([FromBody] TaxDto taxDto)
        {
            var updateTax = await _taxesService.UpdateTax(taxDto);

            if (updateTax == null)
            {
                return(BadRequest("Something wrong data to allow it to update"));
            }

            return(Ok(updateTax));
        }