Example #1
0
        public void Update(Domain.Inscricao entity)
        {
            var item = FindById(entity.Id);

            _context.Entry(item).CurrentValues.SetValues(entity);
        }
Example #2
0
 public void Add(Domain.Inscricao entity)
 {
     _context.Entry(entity).State = System.Data.Entity.EntityState.Added;
 }