예제 #1
0
 public void Post([FromBody] CustomCategoryDTO customCategoryDTO)
 {
     customCategoriesService.Create(customCategoryDTO);
 }
예제 #2
0
        public void Create(CustomCategoryDTO item)
        {
            CustomCategory customCategory = _mapper.Map <CustomCategory>(item);

            repository.Create(customCategory);
        }