Esempio n. 1
0
 public async Task OnGet(string str)
 {
     try {
         if (str == null)
         {
             str = HttpContext.Session.GetString("searchStr");
         }
         searchStr = str;
         string userId = HttpContext.Session.GetString("userId");
         User    = new User(userId);
         Recipes = Inf.GetRecipeByPartialTitle(searchStr, User);
     } catch (Exception) {
         RedirectToPage("ErrorPage");
     }
 }