예제 #1
0
        public async Task Edit(int id, EditDecalPriceInput input)
        {
            var decalPrice = await Get(id);

            decalPrice.Description    = input.Description;
            decalPrice.Quantity       = input.Quantity;
            decalPrice.PrintPrice     = input.PrintPrice;
            decalPrice.MachiningPrice = input.MachiningPrice;
            decalPrice.CutPrint       = input.CutPrint;
            await _decalPriceService.SaveChangesAsync();
        }
        public async Task <IActionResult> Edit(int id, [FromForm] EditDecalPriceInput input)
        {
            await _decalPriceService.Edit(id, input);

            return(Ok());
        }