예제 #1
0
        public ActionResult Detail(long id)
        {
            Result <Msg_EmailSetting> result = new Result <Msg_EmailSetting>();

            using (MessageClientProxy proxy = new MessageClientProxy(ProxyEx(Request)))
            {
                result = proxy.GetEmailSettingModel(id);
            }


            return(View(result.Data));
        }
예제 #2
0
        public ActionResult Edit(long id)
        {
            Result <Msg_EmailSetting> result = new Result <Msg_EmailSetting>();

            using (MessageClientProxy proxy = new MessageClientProxy(ProxyEx(Request)))
            {
                result = proxy.GetEmailSettingModel(id);
            }
            var isConfirm = result.Data.IsConfirm ? EnumState.Confirmed.ToString() : EnumState.NoConfim.ToString();
            var isEnable  = result.Data.IsEnable ? EnumState.Enable.ToString() : EnumState.Disable.ToString();

            ViewBag.IsEnable  = HelperExt.GetEnableList(false, isEnable);
            ViewBag.IsConfirm = HelperExt.GetConfirmList(false, isConfirm);


            return(View(result.Data));
        }