public static void ToSaveEntity(RoleEditViewModel viewModel)
 {
     using (DBEntity db = new DBEntity())
     {
         Role role = db.Role.GetEntity(m => m.ID == viewModel.ID);
         role.Name = viewModel.Name;
         role.Remark = viewModel.Remark;
         role.IsEnable = int.Parse(viewModel.IsEnable) == 1 ? true : false;
         db.SaveChanges();
     }
 }
 public ActionResult Modify(RoleEditViewModel viewModel)
 {
     RoleEditViewModel.ToSaveEntity(viewModel);
     return Json(viewModel);
 }