public async Task<bool> AddPaymentDetails(PaymentDetails model) { var result = _dbContext.PaymentDetails.Add(model); var saveResult = await _dbContext.SaveChangesAsync(); if (saveResult > 0) { return true; } else { return false; } }
public void SaveChangesAsync() { _context.SaveChangesAsync(); }