public ActionResult InitResponse(PedestrianRequestModel request) { Func <Guid, ActionResult <Logic.DriverProfileResponseLogic> > initResponseDelegate = InitResponseDelegate; if (initResponseDelegate != null) { ActionResult <Logic.DriverProfileResponseLogic> initResult = initResponseDelegate(request.RequestId); return(initResult.IsValid ? ActionResult.ValidResult : ActionResult.GetErrorResult(initResult)); } else { return(ActionResult.GetErrorResult(new NotSupportedException())); } }
internal DriverProfileResponseModel(PedestrianRequestModel request, DriverProfileModel responseAuthor) { _responseAuthor = responseAuthor; _request = request; }