Exemplo n.º 1
0
        public long LoadEmails()
        {
            HttpPostedFile file = HttpContext.Current.Request.Files[0];
            string         path = HttpContext.Current.Server.MapPath("~/Content/Files/" + file.FileName);

            file.SaveAs(path);
            int electionId = int.Parse(HttpContext.Current.Request.Params["electionId"]);

            return(GeneralBL.LoadEmails(path, electionId));
        }