public async Task <ActionResult> Edit([Bind(Include = "Id,Palestrante,MiniBioPalestrante,UrlSitePalestrante,TwitterPalestrante,UrlFotoPalestrante,Trilha,Titulo,Descricao,Data,HoraInicio,HoraTermino,CreatedAt,Deleted,UpdatedAt,Version")] AgendaEvento agendaEvento) { if (ModelState.IsValid) { db.Entry(agendaEvento).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(agendaEvento)); }
public async Task <ActionResult> Edit([Bind(Include = "Id,Color,User,UriImage,Complete,CreatedAt,Deleted,UpdatedAt,Version")] IoTActivity ioTActivity) { if (ModelState.IsValid) { db.Entry(ioTActivity).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(ioTActivity)); }