细化魔方设置,支持部分页面强制SSL
大石头 authored at 2018-10-17 09:25:31
528.00 B
NewLife.Cube
#if __CORE__
using Microsoft.AspNetCore.Mvc;
#else
using System.Web;
using System.Web.Mvc;
#endif

namespace NewLife.Cube.Controllers
{
    /// <summary>主页面</summary>
    //[AllowAnonymous]
    public class CubeHomeController : Controller
    {
        /// <summary>主页面</summary>
        /// <returns></returns>
#if !__CORE__
        [RequireSsl]
#endif
        public ActionResult Index()
        {
            ViewBag.Message = "主页面";

            return View();
        }
    }
}