Exemple #1
0
 public CategoryDTO GetMainCategory(int id)
 {
     try
     {
         var area = _categoryRepository.GetMainCategory(id);
         return(Mapper.Map <MainCategory, CategoryDTO>(area));
     }
     catch (Exception ex)
     {
         throw;
     }
 }