mirror of
https://github.com/Varorbc/PaySharp.git
synced 2026-10-18 13:40:40 +08:00
28 lines
514 B
C#
28 lines
514 B
C#
using PaySharp.Demo.Models;
|
|
#if NETCOREAPP
|
|
using Microsoft.AspNetCore.Mvc;
|
|
#else
|
|
using System.Web.Mvc;
|
|
#endif
|
|
using System.Diagnostics;
|
|
|
|
namespace PaySharp.Demo.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
#if NETCOREAPP
|
|
|
|
public ActionResult Error()
|
|
{
|
|
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
|
}
|
|
|
|
#endif
|
|
}
|
|
}
|