Пример #1
0
        public async Task <ActionResult> Edit([Bind(Include = "MasterID,MasterText,MasterTable,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,Active")] M_MasterInfo m_MasterInfo)
        {
            if (ModelState.IsValid)
            {
                db.Entry(m_MasterInfo).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(m_MasterInfo));
        }
        public async Task <ActionResult> Edit([Bind(Include = "MemberID,Name,ParantName,DOB,Qualification,Occupation,ContactNo,Email,P_Address,Permanent_Address,Interest_Achievement,PurposeOfJoining,OtherNGO_Member,OtherNGOMembersDetails,MembershipCategory,Fax,Website,Organization,Position,OrganizationPhone,OrganizationFax,OrganizationEmail,OrganizationWebsite,Remarks,IsApproved,ValidityFrom,ValidtyTo,CreatedBy,CreatedDate,ModifiedBy,ModifiedDate,Active")] M_MembersMaster m_MembersMaster)
        {
            if (ModelState.IsValid)
            {
                db.Entry(m_MembersMaster).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.Qualification      = new SelectList(db.M_MasterInfo, "MasterID", "MasterText", m_MembersMaster.Qualification);
            ViewBag.MembershipCategory = new SelectList(db.M_MasterInfo, "MasterID", "MasterText", m_MembersMaster.MembershipCategory);
            return(View(m_MembersMaster));
        }