I have a small problem, in the image below I have a client list. There is a button that opens a modal for editing, it works normal, however after you edit the modal mode, I need to update the information in the list.
Belowismycode:
[HttpPost][ValidateAntiForgeryToken]publicActionResultEditar(Clientecliente){cliente.Ativo=true;try{using(SistemaDBEntitiesdb=newSistemaDBEntities()){db.Entry(cliente).State=EntityState.Modified;db.SaveChanges();}}catch(Exceptionex){}returnRedirectToAction("Index");
}
Does anyone know how to do this?