Ejemplo n.º 1
0
        public ActionResult Edit(int?id, int?logId)
        {
            PageManageModel model = null;

            if (id.HasValue)
            {
                model = _pageServices.GetPageManageModel(id.Value);
            }
            else if (logId.HasValue)
            {
                model = _pageServices.GetPageManageModelByLogId(logId.Value);
            }
            if (model == null)
            {
                SetErrorMessage(LocalizedResourceServices.T("AdminModule:::Pages:::Messages:::ObjectNotFounded:::Page is not founded."));
                return(RedirectToAction("Index"));
            }
            return(View(model));
        }