public Document Export(int type) { List <Appointment> lstData = unitOfWork.AppointmentRepository.Get().ToList(); return(ExporterFactory.Instance().CreateExporter(type).export(lstData)); }
public Document ExportDate(IEnumerable <Appointment> applist, int type) { return(ExporterFactory.Instance().CreateExporter(type).export(applist.ToList())); }