Пример #1
0
        public ActionResult Edit(int?id, int?logId)
        {
            ScriptManageModel model = null;

            if (id.HasValue)
            {
                model = _scriptService.GetScriptManageModel(id.Value);
            }
            else if (logId.HasValue)
            {
                model = _scriptService.GetScriptManageModelByLogId(logId.Value);
            }
            if (model == null)
            {
                SetErrorMessage(T("Script_Message_ObjectNotFound"));
                return(RedirectToAction("Index"));
            }
            return(View(model));
        }