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

            return item;

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

        }
Esempio n. 3
0
 public CompensationLog Add(CompensationLog item)
 {
     dbContext.CompensationLog.Add(item);
     SaveChanges();
     return item;
 }