public async Task RemovePayMethod(int id) { OrderPayMethod payMethod = await _orderPayMethodsRepo.GetRepo().SingleOrDefaultAsync(x => x.Id == id); if (payMethod != null) { await _orderPayMethodsRepo.RemoveAsync(payMethod); } }
public async Task <int> AddPayMethod(OrderPayMethod item) { return(await _orderPayMethodsRepo.AddAsync(item)); }
public async Task UpdatePayMethod(OrderPayMethod item) { await _orderPayMethodsRepo.UpdateAsync(item); }