/// <summary> /// Initializes the business logic and updates the view /// </summary> public void Init( ) { try { ConfigureBl.Initialize(); updateView(); } catch (Exception ex) { ExceptionHelper.Handle(ex); } }
static void Main(string[] args) { Console.WriteLine("Start"); List <Customer> allCustomer = new List <Customer>(); try { ConfigureBl.Initialize(); /*foreach(Customer c in CustomerManager.GetAllCustomers()) * { * allCustomer.Add(c); * } * Customer manuel = allCustomer.Find(item => item.CustomerId == 4);*/ RechnungManager.InsertRechnungAsDoc(2); //List<byte[]> docs = RechnungManager.GetAllRechnungenForKunde(manuel.CustomerId); } catch (Exception ex) { Console.WriteLine(ex.Message); } }