public async Task UpdatePassDiscount(PassDiscount passDiscount)
        {
            _repository.Update(passDiscount);

            await _unit.Complete();
        }
        public async Task AddPassDiscount(PassDiscount passDiscount)
        {
            await _repository.Add(passDiscount);

            await _unit.Complete();
        }
Example #3
0
        public async Task <IActionResult> UpdatePassDiscount(int id, [FromBody] PassDiscount passDiscount)
        {
            await _service.UpdatePassDiscount(passDiscount, id);

            return(Ok());
        }
Example #4
0
        public async Task <IActionResult> PostPassDiscount([FromBody] PassDiscount passDiscount)
        {
            await _service.AddPassDiscount(passDiscount);

            return(Ok());
        }
Example #5
0
 public async Task UpdatePassDiscount(PassDiscount passDiscount, int Id)
 {
     await _unitOfWork.PassDiscountRepository.Update(passDiscount, Id);
 }
Example #6
0
 public async Task AddPassDiscount(PassDiscount passDiscount)
 {
     await _unitOfWork.PassDiscountRepository.Add(passDiscount);
 }