public ActionResult DeleteConfirmed(int id)
{
try
{
CategoryServices.DeleteEntity(id);
}
catch (OperationCanceledException ex)
{
ModelState.AddModelError("", Resources.AppMessages.Error_Category_With_Posts);
return View(CategoryServices.FindEntityByIdentity(id));
}
return RedirectToAction("Index");
}