Exemple #1
0
        public ActionResult Index()
        {
            if (User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("Index", "Projects"));
            }

            SigninCommand loginCred = new SigninCommand();

            return(View(loginCred));
        }
Exemple #2
0
        public ActionResult Index(SigninCommand loginCred)
        {
            if (!ModelState.IsValid)
            {
                return(View(loginCred));
            }

            if (accessService.GrantAccess(loginCred))
            {
                return(RedirectToAction("Index", "Projects"));
            }

            return(View(loginCred));
        }
Exemple #3
0
 public SignResponse SignIn(SigninCommand command)
 {
     throw new NotImplementedException();
 }