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(); }
public async Task <IActionResult> UpdatePassDiscount(int id, [FromBody] PassDiscount passDiscount) { await _service.UpdatePassDiscount(passDiscount, id); return(Ok()); }
public async Task <IActionResult> PostPassDiscount([FromBody] PassDiscount passDiscount) { await _service.AddPassDiscount(passDiscount); return(Ok()); }
public async Task UpdatePassDiscount(PassDiscount passDiscount, int Id) { await _unitOfWork.PassDiscountRepository.Update(passDiscount, Id); }
public async Task AddPassDiscount(PassDiscount passDiscount) { await _unitOfWork.PassDiscountRepository.Add(passDiscount); }