public int FirstTimeInIsraelUPDATE(Tourist tourist) { DBservices db = new DBservices(); return(db.FirstTimeInIsraelUPDATE(tourist)); }
//מנרמלת תייר ספציפי ע"פ פורמט ההשוואה public Match ConvertSpecificTourist(Tourist t) { Match m = new Match(); m.Rank = 0; m.Id = t.TouristID; //ממיר תאריך לידה לשנה על מנת להשוות בין גילאים string o = ""; if (t.YearOfBirth == null) { o = "03/03/2020"; } else { o = t.YearOfBirth; } char str = '/'; string[] listTemp = o.Split(str); m.Age = int.Parse(listTemp[2]); //תאריך לידה //מוסיף את השפה של התייר List <int> langArray = new List <int>(); if (t.LanguageCode == 0) { langArray.Add(0); } else { langArray.Add(t.LanguageCode); } m.Language = langArray; //מוסיף את רשימת התחביבים של התייר List <int> HobArray = new List <int>(); if (t.Hobbies != null) { m.Hobbies = t.Hobbies; } else { m.Hobbies = new List <int>(); } //מוסיף את רשימת ההתמחויות של התייר List <int> ExperArray = new List <int>(); if (t.Expertises != null) { m.Expertises = t.Expertises; } else { m.Expertises = new List <int>(); } return(m); }
public int SetBudget(Tourist tourist) { DBservices db = new DBservices(); return(db.BudgetUPDATE(tourist)); }
public int FlightsDates(Tourist tourist) { DBservices db = new DBservices(); return(db.FlightsDatesUpdate(tourist)); }
//0= db error //1= update succeeded public int UploadPicture(Tourist tourist) { DBservices db = new DBservices(); return(db.UploadPicture(tourist)); }
//0= db error //1= update succeeded public int EditProfile(Tourist tourist) { DBservices db = new DBservices(); return(db.EditProfile(tourist)); }
public int InsertTourist(Tourist tourist) { DBservices db = new DBservices(); return(db.PostTouristToSQL(tourist)); }