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()));
            }
        }
示例#2
0
 internal DriverProfileResponseModel(PedestrianRequestModel request, DriverProfileModel responseAuthor)
 {
     _responseAuthor = responseAuthor;
     _request        = request;
 }