public void RemoveMatiere(ProfMatiereViewModel model) { var obj = this._mapper.Map <ProfMatiere>(model); this._repo.RemoveMatiere(obj); this._unitOfWork.Commit(); }
public IActionResult AddMatiere([FromRoute] int id, [FromRoute] int matiereId) { ProfMatiereViewModel model = new ProfMatiereViewModel() { ProfId = id, MatiereId = matiereId }; this._service.AddMatiere(model); return(Ok()); }