public ActionResult Logs(int id) { var model = _scriptService.GetLogs(id); if (model == null) { SetErrorMessage(T("Script_Message_ObjectNotFound")); return(RedirectToAction("Index")); } return(View(model)); }