Example #1
0
        public void RemoveProf(ProfClasseViewModel model)
        {
            var obj = this._mapper.Map <ProfClasse>(model);

            this._repo.RemoveProf(obj);
            this._unitOfWork.Commit();
        }
Example #2
0
        public IActionResult RemoveClasse([FromRoute] int id, [FromRoute] int classeId)
        {
            ProfClasseViewModel model = new ProfClasseViewModel()
            {
                ProfId   = id,
                ClasseId = classeId
            };

            this._service.RemoveClasse(model);
            return(Ok());
        }
Example #3
0
        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());
        }