public BookingConfirmed GetPropertyViewByPropertyIdnBookingId(long propertyId, long bookingId)
        {
            using (SqlConnection connection = new SqlConnection(CommonUtility.ConnectionString))
            {
                SqlCommand command = new SqlCommand(StoreProcedure.GET_PROPERTY_BY_PROPERTYID_BOOKINGID, connection);
                command.CommandType = CommandType.StoredProcedure;
                command.Parameters.Add(new SqlParameter("@propertyId", propertyId));
                command.Parameters.Add(new SqlParameter("@bookingId", bookingId));
                try
                {
                    connection.Open();
                    SqlDataReader    dataReader   = command.ExecuteReader();
                    BookingConfirmed propertyList = new BookingConfirmed();
                    propertyList = UtilityManager.DataReaderMap <BookingConfirmed>(dataReader);
                    return(propertyList);
                }
                catch (Exception e)
                {
                    throw new Exception("Exception retrieving reviews. " + e.Message);
                }

                finally
                {
                    connection.Close();
                }
            }
        }
Beispiel #2
0
        public ActionResult BookingConfirmed(string PropertyId, string BookingId)
        {
            var model = new BookingConfirmed();

            if (Request.QueryString["PropertyId"] != null)
            {
                long propertyId = Request.QueryString["PropertyId"] != null
                    ? Convert.ToInt64(Request.QueryString["PropertyId"])
                    : 0;

                long bookingId = Request.QueryString["BookingId"] != null
                    ? Convert.ToInt64(Request.QueryString["BookingId"])
                    : 0;

                model = PropertyManager.GetPropertyViewByPropertyIdnBookingId(propertyId, bookingId);
            }
            return(View("~/Views/Home/BookingConfirmed.cshtml", model));
        }
Beispiel #3
0
 public void HandleEvent(BookingConfirmed msg)
 {
     BookingStatus = BookingStatusEnum.Confirmed;
 }
 public void HandleEvent(BookingConfirmed msg)
 {
     BookingStatus = BookingStatusEnum.Confirmed;
 }