示例#1
0
        public void RemoveMatiere(ProfMatiereViewModel model)
        {
            var obj = this._mapper.Map <ProfMatiere>(model);

            this._repo.RemoveMatiere(obj);
            this._unitOfWork.Commit();
        }
示例#2
0
        public IActionResult AddMatiere([FromRoute] int id, [FromRoute] int matiereId)
        {
            ProfMatiereViewModel model = new ProfMatiereViewModel()
            {
                ProfId    = id,
                MatiereId = matiereId
            };

            this._service.AddMatiere(model);
            return(Ok());
        }