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