protected override Error ParseError() { var error = new Error(); error.Accept(this.ObjectsVisitor, this.Data); return(error); }
private static ActionResult <TModel> ToErrorResult <TModel>(Error error) => error.Accept <ErrorMappingVisitor <TModel>, ActionResult <TModel> >(new ErrorMappingVisitor <TModel>());
private static ActionResult ToErrorResult(Error error) => error.Accept <ErrorMappingVisitor <object>, ActionResult <object> >(new ErrorMappingVisitor <object>()).Result;
private static ActionResult <TModel> MapError <TModel>(this Error error) => error.Accept <ResultMappingVisitor <TModel>, ActionResult <TModel> >( new ResultMappingVisitor <TModel>());