Пример #1
0
        public async Task <ActionResult> Edit([Bind(Include = "ID,NOME,SOBRENOME,TELEFONE")] form form)
        {
            if (ModelState.IsValid)
            {
                db.Entry(form).State = System.Data.Entity.EntityState.Modified;
                await db.SaveChangesAsync();

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