1: 2: 3: 4: 5: 6: 7: 8: 9:
SqlDataReader reader1=new SqlDataReader(); if (type == 1) { reader1=projectDb.GetProjectByAuthor(authorId) } else if (type == 2) { reader1 = projectDb.GetAllProjects() }