public void Handle(Type modelType, Notification notification) { var jsonResponse = new JsonResponse(); jsonResponse.RegisterErrors(notification .ToValidationErrors() .Where(x => !string.IsNullOrWhiteSpace(x.message))); _request.Set(jsonResponse); _factory .BuildPartial(jsonResponse.GetType()) .InvokePartial(); }