public async Task <IActionResult> AddOrUpdate(Guid?Id) { ViewData["DataType"] = typeof(Categories); if (Id != null) { var contentEntry = await contentBusiness.GetCategoryForm(Id.Value); ViewData["DataModel"] = contentEntry; } return(View()); }