Very very simple
if you have paste this code in home controller and ur iis is listening as http://localhost:54371 then it is
http:
interesting if you put a null string check like follows
public string ReverseTheString(string input)
{
if (string.IsNullOrWhiteSpace(input))
{
return "string is empty";
}
char[] arr = input.ToCharArray();
System.Array.Reverse(arr);
return new string(arr);
}
then try this too
http:
for multiple
public string ReverseTheString(string input, string input2, int age)
{
if (string.IsNullOrWhiteSpace(input))
{
return "string is empty";
}
char[] arr = input.ToCharArray();
System.Array.Reverse(arr);
return new string(arr);
}
http: