示例#1
0
        public Player Update(Player player, CompensationLog compensationLog)
        {
            dbContext.Entry(player).State = System.Data.Entity.EntityState.Modified;
            new CompensationRepo().Add(compensationLog);
            return player;

        }
示例#2
0
        public Player Update(Player item)
        {
            dbContext.Entry(item).State = System.Data.Entity.EntityState.Modified;
            
            return item;

        }