コード例 #1
0
        public async Task <ActionResult <Discount> > GetDiscount()
        {
            var discounts = await _repo.GetAllDiscount();

            return(Ok(BindOutput(StatusCodes.Status200OK, RequestState.Success, "Retreived record successfully", discounts)));
        }