public PartialViewResult Search_Meeting_Rooms( string name, Nullable <int> capacity, Nullable <bool> overhead_projector, Nullable <bool> slide_projector, Nullable <bool> film_projector, Nullable <bool> ifp, Nullable <bool> video_screen, Nullable <bool> white_board, Nullable <bool> microphones, Nullable <bool> computer, Nullable <bool> loud_speaker, Nullable <System.DateTime> from, Nullable <System.DateTime> to, view_types v_type ) { string view = "_MeetingRoom_Calendar"; if (v_type == view_types.Calendar) { view = "_MeetingRoom_Calendar"; } else if (v_type == view_types.Grid) { view = "_MeetingRoom_Grid"; } else if (v_type == view_types.Table) { view = "_Meetingroom_Table"; } bool?checked_b = true; bool?unchecked_b = null; var model = db.SP_Search_Meeting_Rooms(name, capacity, (overhead_projector == null || overhead_projector == false ? unchecked_b : checked_b), (slide_projector == null || slide_projector == false ? unchecked_b : checked_b), (film_projector == null || film_projector == false ? unchecked_b : checked_b), (film_projector == null || film_projector == false ? unchecked_b : checked_b), (video_screen == null || video_screen == false ? unchecked_b : checked_b), (white_board == null || white_board == false ? unchecked_b : checked_b), (microphones == null || microphones == false ? unchecked_b : checked_b), (computer == null || computer == false ? unchecked_b : checked_b) , (loud_speaker == null || loud_speaker == false ? unchecked_b : checked_b), from, to, null).ToList(); return(PartialView(view, model)); }
public PartialViewResult Load_Timeline_Meeting_Rooms_Reservations(int index, string attendees_Name, int room_meeting_Id, Nullable <int> host_Id, Nullable <System.DateTime> from, Nullable <System.DateTime> to, view_types v_type) { return(PartialView("_MeetingRoom_Reservations_Timeline", db.SP_Search_Reservation_Scroll(room_meeting_Id, attendees_Name, host_Id, index, from, to).ToList())); }