public ActionResult Delete(int id)
        {
            var generalCategory = _generalCategoryManager.GetById(id);

            try
            {
                if (_generalCategoryManager.Remove(generalCategory))
                {
                    ViewBag.Msg = "Deleted successfully!";

                    return(View("Search"));
                }
            }
            catch (Exception exception)
            {
                //return HttpNotFound();
                ViewBag.Msg = exception.GetType().ToString();
            }

            return(View("Search"));
        }
 public ActionResult DeleteConfirmed(long id)
 {
     _generalCategoryManager.Remove(id);
     return(RedirectToAction("Index"));
 }