public static void MemberPasswordUpdate(int MemberID, string Password) { BINROTA.DAL.Members objMem = new BINROTA.DAL.Members(); objMem.Load(MemberID); objMem.Password = Password; objMem.Save(); }
public static void MemberPortraitUpdate(int MemberID, string PhotoPath) { BINROTA.DAL.Members objMem = new BINROTA.DAL.Members(); objMem.Load(MemberID); objMem.PhotoPath = PhotoPath; objMem.Save(); }
public static void MemberUpdate(int MemberID, string FirstName, string LastName, int JobID, int LivingPlace, string Interests, string Motto, string VisitedPlaces, DateTime BirthDay) { BINROTA.DAL.Members objMem = new BINROTA.DAL.Members(); objMem.Load(MemberID); objMem.FirstName = FirstName; objMem.LastName = LastName; objMem.JobID = JobID; objMem.LivingPlace = LivingPlace; objMem.Interests = Interests; objMem.BirthDay = BirthDay; objMem.VisitedPlaces = VisitedPlaces; objMem.Motto = Motto; objMem.Save(); }
public static bool ActivateMember(string ActivationKey, int MemberID) { BINROTA.DAL.Members objMem = new BINROTA.DAL.Members(); objMem.ActivationKey = ActivationKey; objMem.MemberID = MemberID; DataTable dt = objMem.LoadByParams().Tables[0]; if (dt.Rows.Count > 0) { objMem.Load(int.Parse(dt.Rows[0]["MemberID"].ToString())); objMem.isActive = true; objMem.Save(); return(true); } else { return(false); } }
public static int MemberInsert(string FirstName, string LastName, string NickName, string Email, DateTime BirthDay, int JobID, int LivingPlace, string Password, bool Gender, DateTime ModifyDate, string ActivationKey) { BINROTA.DAL.Members objMem = new BINROTA.DAL.Members(); objMem.BirthDay = BirthDay; objMem.EMail = Email; objMem.FirstName = FirstName; objMem.Gender = Gender; objMem.LastName = LastName; objMem.JobID = JobID; objMem.LivingPlace = LivingPlace; objMem.Education = ""; objMem.VisitedPlaces = ""; objMem.MemberTypeID = (int)Enumerations.MemberType.NewMember; objMem.NickName = NickName; objMem.Password = Password; objMem.ActivationKey = ActivationKey; objMem.CreateDate = DateTime.Today; objMem.ModifyDate = ModifyDate; objMem.isActive = false; objMem.Point = 0; return(objMem.Save()); }