public ActionResult EmergencyList()
        {
            if (string.IsNullOrEmpty(ViewBag.LillyId))
            {
                return(Redirect("/notauthed.html"));
            }

            var configedAppid =
                CommonService.lstSysConfig.FirstOrDefault(
                    x => x.ConfigName.Equals(HseAppIdKey, StringComparison.OrdinalIgnoreCase));

            if (configedAppid == null)
            {
                _Logger.Error("Have not config appid for hse.");
            }

            ViewBag.AppId = configedAppid == null ? 0 : int.Parse(configedAppid.ConfigValue);

            var resultViewModel = new HseMessageView();
            var lst             = _hseService.GetHseEmergencyLst(ViewBag.LillyId, ViewBag.AppId);

            resultViewModel.List = lst ?? new List <HseEntity>();

            return(View(resultViewModel));
        }