Ejemplo n.º 1
0
 // TODO: Implement some kind of AutoMapper?
 public PingResponse(BaseResponse baseResponse, CreatePingResponsePayload payload)
 {
     message = baseResponse.message;
     method  = baseResponse.method;
     data    = payload.Data;
 }
Ejemplo n.º 2
0
        public PingResponse CreatePingResponse(CreatePingResponsePayload payload, HttpContext context)
        {
            PingResponse pingResponse = new PingResponse(CreateBaseResponse(payload, context), payload);

            return(pingResponse);
        }