コード例 #1
0
        /// <summary>
        /// See all the reservations by an user
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        public List <Reservations> SP_Reservation_GetAll(string username)
        {
            var reservations = ((RBSEntities)Context).reservation_all(username).ToList();

            Reservations reservation_obj  = new Reservations();
            var          reservation_list = reservation_obj.ConvertList(reservations);

            return(reservation_list);
        }
コード例 #2
0
        /// <summary>
        /// See al the reservations without any filter
        /// </summary>
        /// <returns></returns>
        public List <Reservations> SP_Reservation_All()
        {
            var reservations = ((RBSEntities)Context).reservation_all_unfiltered().ToList();

            Reservations reservation_obj  = new Reservations();
            var          reservation_list = reservation_obj.ConvertList(reservations);

            return(reservation_list);
        }
コード例 #3
0
        public List <Reservations> SP_Reservation_Get(DateTime start_date, DateTime end_date, string username)
        {
            var reservations = ((RBSEntities)Context).reservation_list(start_date, end_date, username).ToList();

            Reservations reservation_obj  = new Reservations();
            var          reservation_list = reservation_obj.ConvertList(reservations);

            return(reservation_list);
        }