public void Update(Domain.Professor item) { _professorServiceDomain.Update(item); _uow.SaveChanges(); }
//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; }
public ModelClass() { professor = new Professor(); exercicio = new Exercicio(); }
public Treino() { Exercicio = new Exercicios(); Cliente = new Cliente(); Professor = new Professor(); }