public ActionResult CreateAccount(Person model)
        {
            var actionName = nameof(Index);
            try
            {
                _personBusiness.SaveAndReturn(model);
            }
            catch (Exception ex)
            {
                actionName = nameof(CreateAccount);
                TempData[Constants.ERROR] = ex.Message;
                TempData[nameof(Person)] = model;
            }

            return RedirectToAction(actionName, "Login");
        }
 private void BuildDropDownLists(Person person)
 {
     ViewData["Sex"] = BuildListItemfromEnum<SexEnum>(person.Sex.ToString());
     ViewData["AccessCode"] = BuildListItemfromEnum<AccessProfileEnum>(person.User?.AccessCode.ToString());
 }