示例#1
0
        public async Task <ActionResult> Edit([Bind(Include = "pr_id,pr_name,pr_createdby,pr_createdat,pr_updatedby,pr_updatedat,pr_isdeleted")] Product_tbl product_tbl)
        {
            if (ModelState.IsValid)
            {
                db.Entry(product_tbl).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(product_tbl));
        }
        public async Task <ActionResult> Edit([Bind(Include = "id,ur_firstname,ur_lastname,ur_email,ur_mobile,ur_entity,ur_password,ur_createdby,ur_createdat,ur_updateby,ur_updatedat,ur_isdeleted,ur_role,ur_desg")] User_tbl user_tbl)
        {
            if (ModelState.IsValid)
            {
                db.Entry(user_tbl).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            return(View(user_tbl));
        }