示例#1
0
文件: Handle.cs 项目: joaofx/felice
 public static FormActionResult <T> OnFailure <T>(
     this FormActionResult <T> result,
     Func <T, ActionResult> failureResult)
 {
     result.FailureResult = failureResult;
     return(result);
 }
示例#2
0
文件: Handle.cs 项目: joaofx/felice
 public static FormActionResult <T> OnSuccess <T>(
     this FormActionResult <T> result,
     Func <T, ActionResult> successResult,
     string message = "",
     params object[] messageArgs)
 {
     result.SuccessMessage = string.Format(message, messageArgs);
     result.SuccessResult  = successResult;
     return(result);
 }
示例#3
0
文件: Handle.cs 项目: joaofx/felice
 public static FormActionResult <T> With <T>(this FormActionResult <T> result, Action <T> handler)
 {
     result.Handler = handler;
     return(result);
 }