Exemplo n.º 1
0
        public List <Person> GetParticipants(int courseId)
        {
            List <Person> participants = null;

            try
            {
                participants        = personController.FindAllParticipantsOfOneCourse(courseId);
                Response.StatusCode = 200;
            }
            catch (Exception ex)
            {
                Response.StatusCode = 500;
                Response.WriteAsync(ex.Message);
            }
            return(participants);
        }