public ActionResult FeeScore()
        {
            var entity           = _settingRepo.GetEntry(1);
            SettingFeeScoreVM vm = new SettingFeeScoreVM();

            vm.InjectFrom(entity);
            return(View(vm));
        }
 public ActionResult FeeScore(SettingFeeScoreVM viewmodel)
 {
     if (ModelState.IsValid)
     {
         var entity = _settingRepo.GetEntry(1);
         entity.InjectFrom(viewmodel);
         _settingRepo.Update(entity);
         _settingRepo.Save();
         CacheServ.ClearAll();
         TempData["message"] = "Update setting successfully!";
         return(RedirectToAction("FeeScore"));
     }
     return(View(viewmodel));
 }