You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
913 B

/*
*...
*ActionAction使
*: [ApiActionPermission("test2019",Enums.ActionPermissionOptions.Search)]
*/
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
namespace VOL.AppManager.Controllers
{
public partial class test2019Controller
{
private string datetime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
[Route("delay")]
[HttpPost,HttpGet]
public ActionResult Delay()
{
Thread.Sleep(1000);
return Content($"显示加载提示:{datetime}");
}
[Route("getMsg")]
[HttpPost, HttpGet]
public ActionResult GetMsg()
{
return Content($"不带加载提示加载数据:{datetime}");
}
}
}