Exemple #1
0
 public Reservation(DateTime creationDate, DateTime startDate, DateTime endDate, ApplicationUser user)
 {
     Details             = new List <ReservationDetail>();
     CreationDate        = creationDate;
     StartDate           = startDate;
     EndDate             = endDate;
     User                = user;
     _reservationManager = TypeManagerFactory.CreateTypeManager(user.Type);
 }
Exemple #2
0
 public bool IsOverridable(DateTime startDate, DateTime endDate, Type userType)
 {
     return(TypeManagerFactory.CreateTypeManager(userType).IsOverridable(ReservationDetails, startDate, endDate));
 }