Exemple #1
0
 public IActionResult OnGet(int id)
 {
     Application = _apiManager.Find(id);
     if (Application == null)
     {
         return(NotFound("应用程序不存在!"));
     }
     Input = new InputModel
     {
         AppId = id,
         APIs  = _apiManager.LoadApplicationApis(id).Select(x => x.Id).ToArray()
     };
     return(Page());
 }
Exemple #2
0
 public void OnGet(int id)
 {
     Input = _apiManager.Find(id) ?? new Application {
         UserId = UserId
     };
 }