public ActionResult Index() { if (User.Identity.IsAuthenticated) { return(RedirectToAction("Index", "Projects")); } SigninCommand loginCred = new SigninCommand(); return(View(loginCred)); }
public ActionResult Index(SigninCommand loginCred) { if (!ModelState.IsValid) { return(View(loginCred)); } if (accessService.GrantAccess(loginCred)) { return(RedirectToAction("Index", "Projects")); } return(View(loginCred)); }
public SignResponse SignIn(SigninCommand command) { throw new NotImplementedException(); }