예제 #1
0
 /// <summary>
 /// 提示消息
 /// </summary>
 /// <param name="controller">控制器</param>
 /// <param name="operation">业务操作反馈</param>
 public static void Tips <T>(this Controller controller, OperationResult <T> operation)
 {
     controller.TempData["scripts"] += JavascriptExtension.Tip(operation.Message);
 }
예제 #2
0
 /// <summary>
 /// 提示消息
 /// </summary>
 /// <param name="controller">控制器</param>
 /// <param name="message">消息</param>
 public static void Tips(this Controller controller, string message)
 {
     controller.TempData["scripts"] += JavascriptExtension.Tip(message);
 }