public void Update(Domain.Professor item)
 {
     _professorServiceDomain.Update(item);
     _uow.SaveChanges();
 }
Пример #2
0
 //Construtor
 public Aula()
 {
     Professor = new Professor();
     CriadoEm  = DateTime.Now;
 }
 public void Add(Domain.Professor item)
 {
     _professorServiceDomain.Add(item);
     _uow.SaveChanges();
 }
        public void Update(Domain.Professor entity)
        {
            var item = FindById(entity.Id);

            _context.Entry(item).CurrentValues.SetValues(entity);
        }
 public void Add(Domain.Professor entity)
 {
     _context.Entry(entity).State = System.Data.Entity.EntityState.Added;
 }
Пример #6
0
 public ModelClass()
 {
     professor = new Professor();
     exercicio = new Exercicio();
 }
Пример #7
0
 public Treino()
 {
     Exercicio = new Exercicios();
     Cliente   = new Cliente();
     Professor = new Professor();
 }