public async Task <IActionResult> DeleteCategory(int id)
        {
            var response = await GenericGetDataClass <Category> .DeleteCategory($"api/delete/{id}");

            if (response)
            {
                TempData["SM"] = "Category deleting successful!";
                return(RedirectToAction(nameof(ShowAllCategories)));
            }

            TempData["SM"] = "Something wrong";
            return(RedirectToAction(nameof(ShowAllCategories)));
        }