public ActionResult Edit(Member Member) { MemberServices services = new MemberServices(); Member.MemberID = (int)TempData["MemberID"]; services.EditMember(Member); return(RedirectToAction("Index")); }
public ActionResult MemberPageSetting(Member Member) { MemberServices services = new MemberServices(); HttpCookie rqstCookie = HttpContext.Request.Cookies.Get("myaccount"); var memberDataObj = FormsAuthentication.Decrypt(rqstCookie.Value); var memberData = JsonConvert.DeserializeObject <Member>(memberDataObj.UserData); Member.MemberPassword = Encryption.EncryptionMethod(Member.MemberPassword, Member.MemberName); Member.MemberID = memberData.MemberID; Member.MemberGender = memberData.MemberGender; services.EditMember(Member); return(RedirectToAction("MemberPageOrder")); }