public ActionResult EditValue(SystemSettingModel model)
        {
            string command = Request.Form["submit"].ToString();

            switch (command)
            {
            case "Save":
            case "SaveAndContinueEdit":
                if (ModelState.IsValid)
                {
                    try
                    {
                        SystemSetting systemSetting = _systemSettingService.GetForUpdate(model.SettingKey);
                        if (systemSetting == null)
                        {
                            ErrorNotification("Không tìm thấy trang tĩnh nào thỏa mãn");
                            return(RedirectToAction("Index"));
                        }
                        if (systemSetting.Type == 3)
                        {
                            string value = "";
                            foreach (var item in model.ListSelected)
                            {
                                value += item + ",";
                            }
                            systemSetting.Value = value.Trim(',');
                        }
                        else
                        {
                            systemSetting.Value = model.Value;
                        }
                        _systemSettingService.UpdateSystemSetting(systemSetting);

                        SuccessNotification("Cập nhật SystemSetting thành công");

                        if (command == "SaveAndContinueEdit")
                        {
                            Title = "Chỉnh sửa SystemSetting ";
                        }
                        else
                        {
                            return(RedirectToAction("Index"));
                        }
                    }
                    catch (Exception e)
                    {
                        Title = "Chỉnh sửa SystemSetting";
                        ErrorNotification(e);
                    }
                }

                break;

            case "Delete":
                return(RedirectToAction("Delete", new { key = model.SettingKey }));

            default:
                ErrorNotification("Không rõ phương thức submit dữ liệu");
                return(RedirectToAction("Index"));
            }

            ViewData["ToolbarTitle"] = Title;
            var statuses = from SystemSettingcsEnum s in Enum.GetValues(typeof(SystemSettingcsEnum))
                           select new { ID = (int)s, Name = s.ToString() };

            model.SystemSettingType = new SelectList(statuses, "Id", "Name", 1);
            return(View(model));
        }