Пример #1
0
        public SubCategoryViewModel GetById(int id)
        {
            var subCategoryVM = new SubCategoryViewModel();
            var categoryM     = _subCategoryRepository.GetById(id);

            subCategoryVM.Name = categoryM.Name;
            subCategoryVM.Id   = categoryM.Id;
            return(subCategoryVM);
        }
Пример #2
0
 public SubCategory GetById(long id)
 {
     return(_subCategoryRepository.GetById(id));
 }
Пример #3
0
        public SubCategory GetById(int id)
        {
            var subCategory = repository.GetById(id);

            return(subCategory);
        }