Esempio n. 1
0
        public ActionResult Upload()
        {
            List <Patient> p = new List <Patient>();

            if (Request.Files.Count > 0)
            {
                var file = Request.Files[0];

                if (file != null && file.ContentLength > 0)
                {
                    var service = new RecallService();
                    using (StreamReader ms = new StreamReader(file.InputStream))
                    {
                        p = service.UploadPatientsFromStream(ms, User.Pharmacy);
                    }
                }
            }
            return(PartialView("UploadPreview", p));
        }