//获取登录用户权限 public async Task <ActionResult> Login(string userID, string userPwd, string DatabaseConnString) { return(await Task.Run(() => { string errorInfo = string.Empty; return Content(JsonAppHelper.ToJson(api.Login(userID, userPwd, out errorInfo, DatabaseConnString))); })); }