public IActionResult Details(int?id) { if (id == null) { return(View(ViewNamesConstant.FrontendHomeError)); } Category Category = CategoryBusiness.Find(id); if (Category == null) { return(View(ViewNamesConstant.FrontendHomeError)); } return(View(ViewNamesConstant.AdminCategoriesDetails, Category)); }