View("Index", clients)
[HttpGet] public ActionResult UpdateClient() { // Perists record chagnes to database const string PROCNAME = "UpdateClient"; try { int id = Convert.ToInt32(Request["ID"]); // Routine (actually stored proc.) will check for the existence of this ID // and update an existing records or create a new. //Request.Form["name"].ToString(); //clientMethods.SaveClient(Convert.ToInt32(collection["ClientGrid.id"].ToString()), collection["Name"], collection["ClientGrid.Email"]); clientMethods.UpdateClient(Convert.ToInt32(Request["id"].ToString()), Request["Name"].ToString(), Request["Email"].ToString()); List<Client> clients = clientMethods.GetClients(); return View("Index", clients); } catch (Exception ex) { ProgLog.Log(ex.Message, PROCNAME, MODNAME); return null; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)