If your using .net core, Check the .gitignore file in the repo your files might added in .gitignore. after removing you can see the ignored file in your solution.
ex: In .gitignore
#Excluding autogenerated Client
**/Areas/**/Clients/*Client.cs
**/Areas/**/Contracts/*Client.cs