Exemplo n.º 1
0
        public ReservationParametres GetActivityParameters(BookingSlotsnew model)
        {
            ReservationParametres ServiceTypesList = new ReservationParametres();

            using (IDbConnection con = new SqlConnection(ConnectionString))
            {
                if (con.State == ConnectionState.Closed)
                {
                    con.Open();
                }
                DynamicParameters parameters = new DynamicParameters();
                parameters.Add("@UserId", 0);
                parameters.Add("@ActivityTypeFlag", model.activityTypeIds[0]);
                ServiceTypesList = con.Query <ReservationParametres>("ACEGetReservationParameters", parameters, commandType: CommandType.StoredProcedure).FirstOrDefault();
            }
            return(ServiceTypesList);
        }
Exemplo n.º 2
0
 public ReservationParametres GetActivityParameters(BookingSlotsnew model)
 {
     return(_aceRepository.GetActivityParameters(model));
 }