Esempio n. 1
0
        public Task CompleteTask(Task task)
        {
            task.Finished = true;

            _dbSet.Attach(task);
            _dbContext.Entry(task).State = EntityState.Modified;
            return(task);
        }
Esempio n. 2
0
 public virtual void Update(TEntity entity)
 {
     DBSet.Attach(entity);
     DBContext.Entry(entity).State = EntityState.Modified;
     //_dbContext.Entry(entity).State = EntityState.Modified;
 }