demo20230512/Controllers/PartialController.cs

29 lines
696 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Mvc;
using Resources.Helper;
using Weee.DAL;
using Weee.Filter;
namespace Weee.Controllers
{
[RoutePrefix("Partials")]
//[MvcMultilanguage]disable obsolete warning, not sure OK or not
public class PartialController : QcarbonControllerBase
{
public PartialController(WeeeDataContext db) : base(db)
{
}
// GET: /Partial/
[Route("{folder}")]
public ActionResult Index(string folder)
{
folder = folder.Trim().Replace("-", "/");
return PartialView(folder);
}
}
}