// GET: Mails public ActionResult Index() { var mails = repository.GetMails().ToArray(); return(View(mails)); }