public ActionResult AddClient(Client client) { ClientRESTService c = new ClientRESTService(); c.PostClient(client); return(RedirectToAction("Index")); }
public ActionResult DeleteClient(int id, string __RequestVerificationToken) { ClientRESTService c = new ClientRESTService(); c.DeleteClient(id); return(RedirectToAction("Index")); }
public ActionResult EditClient(int id, Client client) { ClientRESTService c = new ClientRESTService(); c.PutClient(client); return(RedirectToAction("DetailsClient", new { id = id })); }
public ActionResult DeleteClient(int id) { ClientRESTService c = new ClientRESTService(); Client client = c.getClient(id); return(View(client)); }
{ // GET: Clients public ActionResult Index() { ClientRESTService c = new ClientRESTService(); List <Client> listClient = c.getClients(); return(View(listClient)); }