public static long Save(CLayer.Property propertydata) { DataLayer.Property property = new DataLayer.Property(); propertydata.B2CMarkupShortTerm = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2C_MARKUP_SHORT_TERM))); propertydata.B2CMarkupLongTerm = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2C_MARKUP_LONG_TERM))); propertydata.B2BMarkupShortTerm = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_MARKUP_SHORT_TERM))); propertydata.B2BMarkupLongTerm = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_MARKUP_LONG_TERM))); propertydata.B2BStdLongTermDis = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_STD_LONG_TERM_DIS))); propertydata.B2BStdShortTermDis = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_STD_SHORT_TERM_DIS))); propertydata.Validate(); return(property.Save(propertydata)); }
public static void SetCommission(CLayer.RateCommission commission) { DataLayer.Property prperty = new DataLayer.Property(); if (commission.B2CShortTerm <= 0) { commission.B2CShortTerm = commission.B2CShortTerm; } if (commission.B2CLongTerm <= 0) { commission.B2CLongTerm = commission.B2CLongTerm; } if (commission.B2BShortTerm <= 0) { commission.B2BShortTerm = commission.B2BShortTerm; } if (commission.B2BLongTerm <= 0) { commission.B2BLongTerm = commission.B2BLongTerm; } prperty.SetCommission(commission); }
public static DataTable GetHotelFormattedDescription(long id) { DataLayer.Property property = new DataLayer.Property(); return(property.GetHotelFormattedDescription(id)); }
public static CLayer.SearchResult GetGDSImageandDesctiption(long PropertyID) { DataLayer.Property pr = new DataLayer.Property(); return(pr.GetGDSImageandDesctiption(PropertyID)); }
public static void GDSSaveImageurl(long PropertyId, string url) { DataLayer.Property bok = new DataLayer.Property(); bok.GDSSaveImageurl(PropertyId, url); }
public static String GetGDSHotelImage(long PropertyID) { DataLayer.Property pr = new DataLayer.Property(); return(pr.GetGDSHotelImage(PropertyID)); }
public static void SaveCancellationDetails(long propertyId, double charge, int period, CLayer.ObjectStatus.CancellationType cancType, bool appliesForRefund) { DataLayer.Property pr = new DataLayer.Property(); pr.SaveCancellationDetails(propertyId, charge, period, cancType, appliesForRefund); }
public static List <CLayer.Property> GetDefaultHotels(long pUserID, string pDestination) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetDefaultHotels(pUserID, pDestination)); }
public static string GetPropertyTamarindFlag(long PropertyID, string PropertyName) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetPropertyTamarindFlag(PropertyID, PropertyName)); }
public static void GDSUpdatePropertyContactNumbers(long PropertyId, string Phone, string Mobile, string Email = "") { DataLayer.Property bok = new DataLayer.Property(); bok.GDSUpdatePropertyContactNumbers(PropertyId, Phone, Mobile, Email); }
public static long GetGDSPropertyImagesCount(long PropertyID) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetGDSPropertyImagesCount(PropertyID)); }
public static CLayer.Property GetCancellationCharges(long propertyId) { DataLayer.Property pr = new DataLayer.Property(); return(pr.GetCancellationCharges(propertyId)); }
public static void GDSUpdatePropertyTitle(long PropertyId, string Title) { DataLayer.Property bok = new DataLayer.Property(); bok.GDSUpdatePropertyTitle(PropertyId, Title); }
public static void GDSUpdatePropertyStarRatings(long PropertyId, int StarRatings) { DataLayer.Property bok = new DataLayer.Property(); bok.GDSUpdatePropertyStarRatings(PropertyId, StarRatings); }
public static void GDSUpdatePropertyDescriptionFormatted(long PropertyId, string Description, int StarRatings, string Response) { DataLayer.Property bok = new DataLayer.Property(); bok.GDSUpdatePropertyDescriptionFormatted(PropertyId, Description, StarRatings, Response); }
public static void GDSUpdatePropertyDescription(long PropertyId, string Description) { DataLayer.Property bok = new DataLayer.Property(); bok.GDSUpdatePropertyDescription(PropertyId, Description); }
public static List <CLayer.Property> GetAllGDSPropertiesRecommended() { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetAllGDSPropertiesRecommended()); }
public static List <string> GetGDSHotelAllImages(long propertyid, int limit = 0) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetGDSHotelAllImages(propertyid, limit)); }
public static List <CLayer.Property> PropertyGetOnCity(int CityId) { DataLayer.Property bok = new DataLayer.Property(); return(bok.PropertyGetOnCity(CityId)); }
public static int DeleteGDSPropertyImages(long PropertyID) { DataLayer.Property bok = new DataLayer.Property(); return(bok.DeleteGDSPropertyImages(PropertyID)); }
public static CLayer.Property GetBookingPropertyDetails(long propertyId) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetBookingPropertyDetails(propertyId)); }
public static bool HasValidAccountForProperty(long propertyId) { DataLayer.Property property = new DataLayer.Property(); return(property.HasValidAccountForProperty(propertyId)); }
public static int GetTBOInventoryAPITypeId(long tamarindhotelid) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetTBOInventoryAPITypeId(tamarindhotelid)); }
public static DataTable SearchForGDSPropertiesWithUser(List <string> codes) { DataLayer.Property property = new DataLayer.Property(); return(property.SearchForGDSPropertiesWithUser(codes)); }
public static CLayer.Property GetPartialPayment(long propertyId) { DataLayer.Property pr = new DataLayer.Property(); return(pr.GetPartialPayment(propertyId)); }
public static DataTable GetHotelIDFromTBOid(long id) { DataLayer.Property property = new DataLayer.Property(); return(property.GetHotelIDFromTBOid(id)); }
public static List <CLayer.Accommodation> GetDetailsForBooking(long propertyId, CLayer.SearchCriteria criteria) { DataLayer.Property pr = new DataLayer.Property(); return(pr.GetDetailsForBooking(propertyId, criteria)); }
public static int GetPropertybyEmail(string Email) { DataLayer.Property pr = new DataLayer.Property(); return(pr.GetPropertybyEmail(Email)); }
public static void GDSSavePropertyDescriptions(long pID, long propertyid, CLayer.DetailContents pDetailContents) { DataLayer.Property property = new DataLayer.Property(); property.GDSSavePropertyDescriptions(pID, propertyid, pDetailContents); }
public static int GetPropertyInventoryAPIType(long PropertyId) { DataLayer.Property bok = new DataLayer.Property(); return(bok.GetInventoryAPITypeId(PropertyId)); }