Esempio n. 1
0
        public static dynamic AsCustomerView(this Appointment appt)
        {
            var staticStorageBox = StaticStorageBox.GetInstance();

            return(appt == null ? null : new
            {
                UserName = $"[{appt.UserId}] {(StorageBox.GetInstance().Users.Get(appt.UserId)?.UserName ?? "<unknown user>")}",
                Trademark = staticStorageBox.Trademarks.First(t => t.Id == appt.TrademarkId),
                CompanyName = staticStorageBox.Companies.First(c => c.Id == appt.CompanyId),
                Time = appt.Time
            });
        }
Esempio n. 2
0
 public CarWorkshopBL()
 {
     workshops = StorageBox.GetInstance().CarWorkshops;
 }
Esempio n. 3
0
 public ApptBL()
 {
     appts = StorageBox.GetInstance().Appointments;
 }
Esempio n. 4
0
 public UserBL()
 {
     users = StorageBox.GetInstance().Users;
 }