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