using System.Web.Mvc;
namespace YourNamespace.Controllers
{
public class HomeController : Controller
{
[HttpPost]
public ActionResult ProcessData(string name, string email)
{
// Process the data or perform any backend tasks
// ...
// Return a JSON response back to the frontend
return Json(new { status = "success", message = "Data received successfully!" });
}
}
}