コード例 #1
0
 /// <summary>
 /// 是否跳转弹出提示 ClassCode.AlertMsg
 /// </summary>
 /// <param name="_Controller"></param>
 /// <param name="msg"></param>
 /// <param name="IsRedirect"></param>
 /// <param name="RedirectUrl"></param>
 /// <returns></returns>
 public ActionResult ViewAlert(Controller _Controller, string msg, bool IsRedirect, string RedirectUrl)
 {
     MsgClass.AlertMsg(this, msg, IsRedirect);
     if (IsRedirect)
     {
         return(Redirect(RedirectUrl));
     }
     else
     {
         return(View());
     }
 }
コード例 #2
0
 public ActionResult ViewAlert(Controller _Controller, string msg, string ViewName)
 {
     MsgClass.AlertMsg(this, msg);
     return(View(ViewName));
 }
コード例 #3
0
 /// <summary>
 ///  ClassCode.AlertMsg(this, msg);
 ///  return View(model);
 /// </summary>
 /// <param name="_Controller"></param>
 /// <param name="msg"></param>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult ViewAlert(Controller _Controller, string msg, object model)
 {
     MsgClass.AlertMsg(this, msg);
     return(View(model));
 }