Пример #1
0
 public Loan(String id, Gadget gadget, Customer customer, DateTime? pickupDate, DateTime? returnDate)
 {
     Id = id;
     GadgetId = gadget.InventoryNumber;
     Gadget = gadget;
     CustomerId = customer.Studentnumber;
     Customer = customer;
     PickupDate = pickupDate;
     ReturnDate = returnDate;
 }
Пример #2
0
        static void Main(string[] args)
        {
            var url = "http://*****:*****@hsr.ch", "20151113");
            sample.ShowAdminInteractionWithGenericInterface(
                max,
                // get id (student number)
                x => x.Studentnumber,
                // change something
                x => x.Name = "Moritz der 1.");
            

            sample.ShowUserInteraction();


            Console.WriteLine("<Press Any Key to Terminate the App>");
            Console.ReadKey();
        }
 public bool DeleteCustomer(Customer obj)
 {
     return DeleteItem(obj, obj.Studentnumber);
 }
 public bool AddCustomer(Customer obj)
 {
     return AddItem(obj);
 }
 public bool UpdateCustomer(Customer obj)
 {
     return UpdateItem(obj, obj.Studentnumber);
 }
 public bool DeleteCustomer(Customer obj)
 {
     return DeleteItem(obj, obj.Email);
 }
 public bool UpdateCustomer(Customer obj)
 {
     return UpdateItem(obj, obj.Email);
 }
 public CustomerViewModel(LibraryAdminService service, Customer customer)
 {
     _service = service;
     _customer = customer;
 }