重构代码:api/New请求地址物理文件更改到api目录下

This commit is contained in:
Argo-MacBookPro 2018-08-26 15:44:19 +08:00
parent f1c0fdcf8d
commit 0fc128d3d8
1 changed files with 26 additions and 24 deletions

View File

@ -1,5 +1,6 @@
using Bootstrap.DataAccess;
using Bootstrap.Security;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Linq;
@ -17,6 +18,7 @@ namespace Bootstrap.Admin.Controllers
/// <param name="value"></param>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public bool Get(string userName)
{
return BootstrapUser.RetrieveUserByUserName(userName) == null && !UserHelper.RetrieveNewUsers().Any(u => u.UserName == userName);