Exemple #1
0
        public IActionResult Create([FromBody] CategoriesVM Category)
        {
            var category = _mapper.Map <Categories>(Category);

            _categoriesRepository.CreateCategories(category);
            return(Ok(category));
        }