Esempio n. 1
0
        public virtual T Update(T entity)
        {
            _context.Attach(entity);

            _context.Entry(entity).State = EntityState.Modified;

            Context.SaveChanges();

            return(entity);
        }