示例#1
0
        public async Task <IActionResult> Post(DiscountDTO model)
        {
            DiscountModel discount = new DTOMapper <DiscountDTO, DiscountModel>().Serialize(model);
            var           Response = await _discountService.AddDiscounts(discount);

            return(Ok(Response));
        }