public T Create(T entity) { var val = db.Set <T>().Add(entity); db.SaveChanges(); return(val); }
public override Payment GetById(long id) { var payrec = db.Set <Payment>().FirstOrDefault(c => c.PayId == id); return(payrec); }
public GenRepository() { db = new PayProcessorContext(); dbSet = db.Set <T>(); }
public override PaymentState GetById(long id) { var PayState = db.Set <PaymentState>().FirstOrDefault(c => c.PayId == id); return(PayState); }