protected override void Dispose(bool disposing) { if (disposing && _guestReservationService != null) { _guestReservationService.Dispose(); _guestReservationService = null; } if (disposing && _employeeShiftService != null) { _employeeShiftService.Dispose(); _employeeShiftService = null; } if (disposing && _guestService != null) { _guestService.Dispose(); _guestService = null; } if (disposing && _personService != null) { _personService.Dispose(); _personService = null; } if (disposing && _tableItemService != null) { _tableItemService.Dispose(); _tableItemService = null; } base.Dispose(disposing); }
public AccountController() { _employeeShiftService = new EmployeeShiftService(); _tableItemService = new TableItemService(); _guestService = new GuestService(); _personService = new PersonService(); _guestReservationService = new GuestReservationService(); }
public AccountController() { _employeeShiftService = new EmployeeShiftService(); _tableItemService = new TableItemService(); //int.TryParse(ConfigurationManager.AppSettings["HotelAccountsTime"].ToString(CultureInfo.InvariantCulture), out _hotelAccountsTime); _guestService = new GuestService(); _personService = new PersonService(); //_personTypeService = new PersonTypeService(); }
public WorkPointController(IEmployeeShiftService employeeShiftService) { _employeeShiftService = employeeShiftService; }
public EmployeeShiftController(IEmployeeShiftService employeeShiftService, HRMDBContext context) { _employeeShiftService = employeeShiftService; }