public IActionResult OnPost() { if (postdata.CheckValid(User.Email, User.Password)) { var u = postdata.GetUserByEmail(User.Email); return(RedirectToPage("./Home", new { Id = u.Id })); } else { return(Page()); } }
public ActionResult <bool> CheckValid(User user) { return(_postData.CheckValid(user.Email, user.Password)); }