public CompensationLog Update(CompensationLog item) { dbContext.Entry(item).State = System.Data.Entity.EntityState.Modified; return item; }
public Player Update(Player player, CompensationLog compensationLog) { dbContext.Entry(player).State = System.Data.Entity.EntityState.Modified; new CompensationRepo().Add(compensationLog); return player; }
public CompensationLog Add(CompensationLog item) { dbContext.CompensationLog.Add(item); SaveChanges(); return item; }