public ActionResult Index() { if (CommonFunc.IsNotLogin(Session["UserLogin"] + "")) { return(RedirectToAction("Login", "Accounts")); } List <Emails> em = email.GetListEmail(); if (em == null || em.Count == 0) { return(View()); } return(View(em)); }