/// <summary> Create a new category inside the database and return the necessary info as a data transfer object </summary>
 /// <param name="name"> The new category name </param>
 /// <param name="description"> The new category description </param>
 public CategoryReqNineDTO Create(string name, string description)
 {
     try
     {
         var c = CreateCategory(name, description);
         return(CategoryMapper.MapCategoryToCategoryReqNineDTO(c));
     }
     catch (Exception ex)
     {
         UnitOfWork.WriteErrorLog(ex);
     }
     return(null);
 }
        /// <summary> Get a specific category from the database and return the necessary info as a data transfer object </summary>
        public CategoryReqNineDTO GetCategoryAsDTO(int categoryID)
        {
            var c = GetCategory(categoryID);

            return(CategoryMapper.MapCategoryToCategoryReqNineDTO(c));
        }