Replacement for sql query with storedProcedure : public DataTable GetRandomQuestionByCateId(string id, int z)
       {
           
           string sql = "SELECT * FROM tblQuestions where CategoryId=@a ORDER BY QId OFFSET @z ROWS  FETCH NEXT 1 ROWS ONLY";
           SqlParameter[] param = new SqlParameter[] 
                { 
                    new SqlParameter("@a",id),
                    new SqlParameter("@z",z),
                };
           return DAO.GetTable(sql, param);




       }

I have this code segment and want to execute a stored procedure as:

create PROCEDURE GetRandomQuest

(

    @a int,
	@b int        

)

AS

BEGIN

    SET NOCOUNT ON;
	sELECT *
	FROM tblQuestions where CategoryId=@a
	ORDER BY QId
	OFFSET @b ROWS 
	FETCH NEXT 1 ROWS ONLY;
	    

END




EXEC dbo.GetRandomQuest @a=2, @b=1

how can i replace it in above case?