//Get the details of a particular Category
        public CategoryModel GetCategoryData(int?id)
        {
            CategoryModel objCategory = new CategoryModel();

            try
            {
                objCategory = ICategoryrepo.GetCategoryData(id);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
            return(objCategory);
        }