/// <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); }
/// <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); }
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); }