Example #1
0
        public ActionResult Authorise()
        {
            var response = businessFacade.AuthoriseAccessCard();

            TempData["IsAuthorised"]         = response.IsAuthorised;
            TempData["AuthorisationMessage"] = response.GetErrorMessage();
            TempData["UserId"] = response.GetUserId();

            return(Redirect(response.GetRedirectUrl()));
        }
        public ActionResult SignOn(LogonUserModel user)
        {
            var businessFacade = new BusinessLayer.BusinessFacade();
            var response       = businessFacade.AuthoriseAccessCard();

            //TempData.Add("UserId", response.GetUserId());
            //TempData.Add("IsAuthorised", response.IsAuthorised);

            //return RedirectToAction(response.GetRedirectUrl());
            return(null);
        }