Ejemplo n.º 1
0
        public async Task RemovePayMethod(int id)
        {
            OrderPayMethod payMethod = await _orderPayMethodsRepo.GetRepo().SingleOrDefaultAsync(x => x.Id == id);

            if (payMethod != null)
            {
                await _orderPayMethodsRepo.RemoveAsync(payMethod);
            }
        }
Ejemplo n.º 2
0
 public async Task <int> AddPayMethod(OrderPayMethod item)
 {
     return(await _orderPayMethodsRepo.AddAsync(item));
 }
Ejemplo n.º 3
0
 public async Task UpdatePayMethod(OrderPayMethod item)
 {
     await _orderPayMethodsRepo.UpdateAsync(item);
 }