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();
        }
Example #2
0
 public JsonResponse Execute(JsonResponse response)
 {
     return response;
 }