public void RemoveProf(ProfClasseViewModel model) { var obj = this._mapper.Map <ProfClasse>(model); this._repo.RemoveProf(obj); this._unitOfWork.Commit(); }
public IActionResult RemoveClasse([FromRoute] int id, [FromRoute] int classeId) { ProfClasseViewModel model = new ProfClasseViewModel() { ProfId = id, ClasseId = classeId }; this._service.RemoveClasse(model); return(Ok()); }
public IActionResult RemoveProf([FromRoute] int id, [FromRoute] int profId) { ProfClasseViewModel model = new ProfClasseViewModel() { ClasseId = id, ProfId = profId }; model.ClasseId = id; this._service.RemoveProf(model); return(Ok()); }