예제 #1
0
 public async Task <IActionResult> Register(RegisterViewModel model)
 {
     if (ModelState.IsValid)
     {
         var result = _account.LoginIn(model.Email, model.Password);
         if (result.IsCompleted)
         {
             return(RedirectToAction("Index", "Home"));
         }
     }
     return(View(model));
 }