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(); } }
public void CreateAula(Aula aula) { BeginTransactionUoW(); _aulaService.Add(aula); ComitUoW(); }
public IActionResult Create(Aula aula) { _aulaService.Add(aula); return(RedirectToAction("Index")); }
public IActionResult Post([FromBody] Aula model) { return(Ok( _aulaService.Add(model) )); }