Esempio n. 1
0
        public ActionResult AdministratorLogOn()
        {
            // if the system is set up, just display the screen
            // else go to the setup screen

            try
            {
                ICardHolderService CardHolderService = new CardHolderService();
                if (CardHolderService.VerifySystemInitialized())
                {
                    return(View());
                }
                return(RedirectToAction("Setup", "Account"));
            }
            catch (Exception Ex)
            {
                ViewBag.ErrorMessage = Common.StandardExceptionErrorMessage(Ex);
                return(RedirectToAction("ViewErrorMessage", "Administration"));
            }
            //return RedirectToAction("Index", "Home");
        }