예제 #1
0
 public void AddResult(string name, CommandResult result)
 {
     Results.Add(name, result);
 }
예제 #2
0
 public static void AddCommandErrors(this ModelStateDictionary modelState, CommandResult result)
 {
     foreach (var error in result.Errors)
     {
         modelState.AddModelError(error.Key, error.Value);
     }
 }