How to make the sandwich like solid?

Forums: 

We have a beginning plane face S1,the end plane face S2 and a curve C1, as seen in the drawing. How can we rotate the S1 along L1,through C1 to S2 to make a sandwich like solid?