예제 #1
0
        public async Task <IActionResult> Login(LoginViewModel model)
        {
            var result = await _authtentication.Autheticate(model.Email, model.Password);

            if (result)
            {
                return(Redirect("/"));
            }
            else
            {
                ModelState.AddModelError(string.Empty, "Invalid Login");
                return(View());
            }
        }