public IActionResult CreateCategory([FromBody] M.Category cat)
        {
            if (!ModelState.IsValid)
            {
                return(new ObjectResult(ModelState));
            }
            var model = _mapper.Map <D.Categorie>(cat);
            var c     = _repository.categorie.Create(model);

            return(new ObjectResult(c));
        }
        public IActionResult ModifyCategory([FromBody] M.Category cat)
        {
            var c = _repository.categorie.Update(_mapper.Map <D.Categorie>(cat));

            return(new ObjectResult(c));
        }