Repository .Net code