Ejemplo n.º 1
0
 public static ExporterFactory Instance()
 {
     // Note: this is not thread safe;
     if (_instance == null)
     {
         _instance = new ExporterFactory();
     }
     return(_instance);
 }
Ejemplo n.º 2
0
        public Document Export(int type)
        {
            List <Appointment> lstData = unitOfWork.AppointmentRepository.Get().ToList();

            return(ExporterFactory.Instance().CreateExporter(type).export(lstData));
        }
Ejemplo n.º 3
0
 public Document ExportDate(IEnumerable <Appointment> applist, int type)
 {
     return(ExporterFactory.Instance().CreateExporter(type).export(applist.ToList()));
 }