server side generate c# index code
restore test