public void Log(string description, Exception ex = null) { LocalPersistenceStrategiesFactory.GetLogPersistenceStrategy().Add( new Log() { Description = description, DateTime = DateTime.Now, ExceptionMessage = (ex == null || ex.Message == null) ? "" : ex.Message.ToString(), ExceptionStackTrace = ex == null ? "" : ex.StackTrace.ToString() }); }
public List <Barcodes> GetBarcodes() { return(LocalPersistenceStrategiesFactory.GetBarcodesPersistanceStrategy().GetCollection().ToList()); }
public void DeleteBarcode(Barcodes barcode) { LocalPersistenceStrategiesFactory.GetBarcodesPersistanceStrategy().Delete(barcode); }
public void EditBarcode(Barcodes barcode) { LocalPersistenceStrategiesFactory.GetBarcodesPersistanceStrategy().Edit(barcode); }
public void DeleteJobShippingLabelColor(JobShippingLabelColor jobShippingLabelColor) { LocalPersistenceStrategiesFactory.GetJobShippingLabelColorPersistenceStrategy().Delete(jobShippingLabelColor); }
public List <JobShippingLabelColor> GetJobShippingLabelColors() { return(LocalPersistenceStrategiesFactory.GetJobShippingLabelColorPersistenceStrategy().GetCollection().ToList()); }
public void EditJobShippingLabelColor(JobShippingLabelColor jobShippingLabelColor) { LocalPersistenceStrategiesFactory.GetJobShippingLabelColorPersistenceStrategy().Edit(jobShippingLabelColor); }
public FacadeController(LocalPersistenceStrategiesFactory localPersistenceStrategiesFactory, OnlinePersistenceStrategiesFactory onlinePersistenceStrategiesFactory) { this.LocalPersistenceStrategiesFactory = localPersistenceStrategiesFactory; this.OnlinePersistenceStrategiesFactory = onlinePersistenceStrategiesFactory; }
public void EditPrinterStatus(Printer printer) { LocalPersistenceStrategiesFactory.GetPrinterPersistenceStrategy().Edit(printer); }
public List <Printer> GetPrintersStatusFromLocalDataSource() { return(new List <Printer>(LocalPersistenceStrategiesFactory.GetPrinterPersistenceStrategy().GetCollection())); }
public void AddRegisteredTag(RegisteredTag registeredTag) { LocalPersistenceStrategiesFactory.GetRegisteredTagPersistenceStrategy().Add(registeredTag); }
public List <RegisteredTag> GetRegisteredTags() { return(new List <RegisteredTag>(LocalPersistenceStrategiesFactory.GetRegisteredTagPersistenceStrategy().GetCollection())); }