Example #1
0
        public ActionResult ClientEdit(T_PRT_CLIENTS model)
        {
            if (model != null)
            {
                string ClientID = _DbPortal.InsertUpdateT_PRT_CLIENTS(model.CLIENT_ID, model.CLIENT_NAME, model.CLIENT_GRANT_TYPE, model.CLIENT_REDIRECT_URI, model.CLIENT_POST_LOGOUT_URI, model.CLIENT_URL);

                if (ClientID != null)
                {
                    TempData["Success"] = "Update successful.";
                }
                else
                {
                    TempData["Error"] = "Error adding client";
                }
            }

            return(RedirectToAction("ClientEdit", new { id = model.CLIENT_ID }));
        }