public ActionResult DeleteConfirmed(int id)
        {
            PageDesign pagedesign = PageDesignRepository.GetSingle(id);

            try
            {
                PageDesignRepository.Delete(pagedesign);
                PageDesignRepository.Save();

                if (IsSuperAdmin)
                {
                    return(RedirectToAction("Index", new { storePageDesignId = pagedesign.StorePageDesignId }));
                }
                else
                {
                    return(RedirectToAction("Index"));
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "Unable to delete:" + ex.StackTrace, pagedesign);
                //Log the error (uncomment dex variable name and add a line here to write a log.
                ModelState.AddModelError("", "Unable to save changes. Try again, and if the problem persists see your system administrator.");
            }

            return(View(pagedesign));
        }