public ActionResult JobLevelList()
        {
            ComJobLevelViewModel model = new ComJobLevelViewModel();
            model.jobLevels = commonListUnitOfWork.JobLevelRepository.Get(s => s.IsDeleted == false).OrderByDescending(s => s.LevelNum).AsEnumerable();
            model.name = "";

            return View(model);
        }
        public ActionResult CreateJobLevel(ComJobLevelViewModel model)
        {
            if (model != null)
            {
                if (!String.IsNullOrEmpty(model.name))
                {
                    bool result = commonListUnitOfWork.CreateJobLevel(model.name, model.levelNum);

                    if (result)
                    {
                        TempData["successmessage"] = "Tạo cấp bậc " + model.name + " thành công.";
                    }
                    else
                    {
                        TempData["errormessage"] = "Tạo cấp bậc " + model.name + " thất bại!";
                    }
                }
                else
                {
                    TempData["errormessage"] = "Dữ liệu không hợp lệ!";
                }
            }
            else
            {
                TempData["errormessage"] = "Có lỗi xảy ra!";
            }

            return RedirectToAction("JobLevelList");
        }