Update Listing Information

1

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?

    
asked by anonymous 07.10.2015 / 20:42

1 answer

0

You will have to execute a callback ajax at the conclusion of the modal edit to refresh the listing data, otherwise only using redirect to the client page (refresh).

EDIT: I had not realized it was in asp, my resolution would be based on php with this HTML / javascript backend.

    
07.10.2015 / 21:01