// GET: Users public ActionResult Index() { var model = new UsersViewModel { Users = _userGateway.Read().FindAll(x => x.LockoutEnabled == false).OrderBy(x => x.FirstName).ToList() }; return(View(model)); }
// GET: Rooms/Create public ActionResult Create() { var model = new RoomEquipmentViewModels { Equipments = _equipmentGateway.Read(), Departments = _departmentsGateway.Read() }; return(View(model)); }
public ActionResult Index() { var viewModel = new IndexViewModel { Rooms = _roomGateway.Read(), Equipment = _equipmentGateway.Read(), Departments = _departmentGateway.Read() }; return(View(viewModel)); }
// GET: SelectedBooking/BookRoom public ActionResult BookRoom(string startDate, string endDate, int?id) { if (id != null & id > 0) { var model = new BookRoomViewModel { Room = _roomGateway.Read(id.Value) }; if (!startDate.IsNullOrWhiteSpace()) { model.StartDate = startDate; } if (!endDate.IsNullOrWhiteSpace()) { model.EndDate = endDate; } return(View(model)); } return(RedirectToAction("Index", "Home")); }
// GET: Bookings public ActionResult Index() { return(View(_bookingGateway.Read())); }
// GET: Departments public ActionResult Index() { return(View(_departmentGateway.Read().OrderBy(x => x.Name))); }