Update Api.cs

Local variables uniformed