0

I want to Call API method(GET Request) GetInfo(Request request), This Request class has 2 parameters,

public class Request
    {

        public int MachineId;
        public int PackageId;

    }

I know if i have Parameters of type int/string in API method, i would call it as http://localhost/Service/api/Info/GetInfo?MachineId=1&PackageId=1, I am not sure how to add Request parameters to my URL in this case. Thanks in Advance.

0 Answers0