예제 #1
0
        public override void AddData()
        {
            var turmas = _turmaService.GetAll();

            var dialog = new AulaDialog(turmas);

            dialog.Aula = new AulaDTO();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                _aulaService.Add(dialog.Aula);

                _control.RefreshGrid();
            }
        }
예제 #2
0
 public void CreateAula(Aula aula)
 {
     BeginTransactionUoW();
     _aulaService.Add(aula);
     ComitUoW();
 }
예제 #3
0
 public IActionResult Create(Aula aula)
 {
     _aulaService.Add(aula);
     return(RedirectToAction("Index"));
 }
예제 #4
0
 public IActionResult Post([FromBody] Aula model)
 {
     return(Ok(
                _aulaService.Add(model)
                ));
 }