예제 #1
0
        public CompensationLog Update(CompensationLog item)
        {
            dbContext.Entry(item).State = System.Data.Entity.EntityState.Modified;

            return item;

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

        }
예제 #3
0
 public CompensationLog Add(CompensationLog item)
 {
     dbContext.CompensationLog.Add(item);
     SaveChanges();
     return item;
 }