예제 #1
0
 public List <Category> GetAllCategories()
 {
     return(businessRepo.GetAllCategories());
 }
        public IActionResult Get()
        {
            var result = _repository.GetAllCategories();

            return(Ok(Mapper.Map <IEnumerable <CategoryViewModel> >(result)));
        }