Пример #1
0
 public static void Update(List <Prescription> contents, bool isRecall)
 {
     if (isRecall)
     {
         ImportRecall.SendMessages(contents);
     }
     else
     {
         ImportCustomer.UpdateContent(contents);
     }
 }
Пример #2
0
        public static List <Prescription> Handle(HttpPostedFileBase file, int?store, bool isRecall = false)
        {
            StreamReader reader = new StreamReader(file.InputStream);

            if (!isRecall)
            {
                var results = ImportCustomer.Csv(reader);
                return(ImportCustomer.DetermineContent(results, store));
            }
            else
            {
                return(ImportRecall.Read(reader));
            }
        }