public async Task <ActionResult <bool> > AddCategory([FromBody] Categories categoryToAdd)
 {
     try
     {
         return(Ok((await _categoriesRepository.AddCategories(categoryToAdd))));
     }
     catch (Exception e)
     {
         _logger.LogError(e, "Exception adding category");
         throw;
     }
 }