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); }
public bool IsOverridable(DateTime startDate, DateTime endDate, Type userType) { return(TypeManagerFactory.CreateTypeManager(userType).IsOverridable(ReservationDetails, startDate, endDate)); }