Hi RAVIRAJ Thanks for reaching out. Please refer the below code for the addition of two parameters
using System.Net;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
public static async Task<IActionResult> Run(HttpRequest req, ILogger log)
{
log.LogInformation("C# HTTP trigger function processed a request.");
string firstNumber = req.Query["firstNumber"];
string secondNumber = req.Query["secondNumber"];
int sum = int.Parse(firstNumber) + int.Parse(secondNumber);
return new OkObjectResult(sum);
}
This code retrieves the values of the "firstNumber" and "secondNumber" parameters from the query string of the HTTP request, adds them together, and returns the result as an HTTP response.
for exploring the Function App documentation using C# functions and properties of triggers, I recommend starting with the following resources:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp?tabs=functionsv2
Let me know incase of further quereis, I would be happy to assist you.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.