예제 #1
0
        public async Task <ActionResult <VoucherDiscountPercentPerUnit> > Edit([FromBody] VoucherDiscountPercentPerUnit voucher)
        {
            if (voucher == null || !ModelState.IsValid)
            {
                return(BadRequest("Invalid State"));
            }

            return(await _voucherRepository.Edit((VoucherDiscountPercentPerUnit)voucher));
        }