public ActionResult Detail(long id)
        {
            Result <Msg_EmailTemplete> result = new Result <Msg_EmailTemplete>();

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


            return(View(result.Data));
        }
        public ActionResult Edit(long id)
        {
            Result <Msg_EmailTemplete> result = new Result <Msg_EmailTemplete>();

            using (MessageClientProxy proxy = new MessageClientProxy(ProxyEx(Request)))
            {
                result = proxy.GetEmailTempleteModel(id);
            }
            ViewBag.Step = Enum <MessageStep> .AsEnumerable().ToDictionary(i => i.ToString(), j => j.GetText()).ToList().ToSelectList("Value", "Key", true, result.Data.Step);

            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));
        }