예제 #1
0
 // TODO: Implement some kind of AutoMapper?
 public CommandsResponse(BaseResponse baseResponse, CreateCommandsResponsePayload payload)
 {
     message    = baseResponse.message;
     method     = baseResponse.method;
     data       = payload.Data;
     successful = true;
 }
        public CommandsResponse CreateCommandsResponse(CreateCommandsResponsePayload payload, HttpContext context)
        {
            CommandsResponse commandsResponse = new CommandsResponse(CreateBaseResponse(payload, context), payload);

            return(commandsResponse);
        }