Example #1
0
        public ActionResult Settings(SettingsViewModel model)
        {
            if (ModelState.IsValid)
            {
                string UserID = _userManager.GetUserId(User);

                int SuccID = _DbPortal.InsertUpdateT_PRT_APP_SETTING(model.edit_app_setting.SETTING_IDX, model.edit_app_setting.SETTING_NAME, model.edit_app_setting.SETTING_VALUE, false, null, UserID);
                if (SuccID > 0)
                {
                    TempData["Success"] = "Data Saved.";
                }
                else
                {
                    TempData["Error"] = "Data Not Saved.";
                }
            }

            return(RedirectToAction("Settings"));
        }