SchooxSharp.Api.Clients.Dashboard.GetExams C# (CSharp) Method

GetExams() public method

Returns a list of all exams with title, image and publishing date.
public GetExams ( string role ) : SchooxResponse>
role string User's role
return SchooxResponse>
        public SchooxResponse<List<Exam>> GetExams(string role)
        {
            //GET /dashboard/exams
            var request = SService.GenerateBaseRequest("/dashboard/exams");
            request.Method = Method.GET;

            request.AddNonBlankQueryString ("role", role);

            return Execute<List<Exam>>(request);
        }