public List <SelectListItem> AccountStatusList()
        {
            List <SelectListItem> accountStatusList = _iAccountStatusManager.GetAll()
                                                      .Select(ast => new SelectListItem
            {
                Value = ast.Id.ToString(),
                Text  = ast.Name
            }).ToList();

            return(accountStatusList);
        }
Exemple #2
0
 public IActionResult Index()
 {
     if (HttpContext.Session.GetString("AdminId") != null)
     {
         return(View(_iAccountStatusManager.GetAll()));
     }
     else
     {
         return(RedirectToAction("Index", "Home"));
     }
 }