public bool SetPreferences(string RegistrationKey, int ColorBorder) { long DentalOfficeID = util.GetDentalOfficeID(RegistrationKey); try { webforms_preference wspNewObj = new webforms_preference(); wspNewObj.DentalOfficeID = DentalOfficeID; wspNewObj.ColorBorder = ColorBorder; wspNewObj.CultureName = ""; //empty string because null is not allowed SetPreferencesV2(RegistrationKey, wspNewObj); } catch (Exception ex) { Logger.LogError("IpAddress=" + HttpContext.Current.Request.UserHostAddress + " DentalOfficeID=" + DentalOfficeID, ex); return(false); } return(true); }
public long GetCustomerNum(string RegistrationKeyFromDentalOffice) { return(util.GetDentalOfficeID(RegistrationKeyFromDentalOffice)); }