public int SaveProfile(long AccountID, string FirstName, string LastName, string PrimaryEmail, string SecondaryEmail, string NewPassword) { ProfileModel objProfile = new ProfileModel(); UsersBE UserEntities = new UsersBE(); string Password; UserEntities = objProfile.GetAccountDetailsByAccountID(AccountID); string UserName = UserEntities.UserName; if (!string.IsNullOrEmpty(NewPassword)) { Password = Cryptography.Cryptography.Encrypt(NewPassword); } else { Password = UserEntities.Password; } string Cellphone = UserEntities.CellPhone; string VerificationGuid = UserEntities.VerificationGuid.ToString(); int CarrierProviderListID = UserEntities.CarrierProviderListID; long FacebookUserID = UserEntities.FacebookUserID; bool IsFacebookID = UserEntities.IsFacebookID; int ID = objRegistrationDAL.RegisterUserWithOutFacebookDAL(AccountID, UserName, Password, FirstName, LastName, PrimaryEmail, SecondaryEmail, Cellphone, VerificationGuid, CarrierProviderListID, FacebookUserID, IsFacebookID); return ID; }
public ActionResult EditProfile() { long AccountID = 0; if (Request.Cookies["ID"] != null) { AccountID = Convert.ToInt64(Request.Cookies["ID"].Value.ToString()); } ProfileModel objProfile = new ProfileModel(); UsersBE UserEntities = new UsersBE(); UserEntities = objProfile.GetAccountDetailsByAccountID(AccountID); return View(UserEntities); }
public int SaveProfile(string FirstName, string LastName, string PrimaryEmail, string SecondaryEmail, string OldPassword, string NewPassword, string ConfirmPassword) { long AccountID = 0; string RetrivePassword = string.Empty; if (Request.Cookies["ID"] != null) { AccountID = Convert.ToInt64(Request.Cookies["ID"].Value.ToString()); } ProfileModel objProfile = new ProfileModel(); int ID = objProfile.SaveProfile(AccountID, FirstName, LastName, PrimaryEmail, SecondaryEmail, NewPassword); return ID; }