public RoleActionMapViewModel(RoleActionMap ram, DataSet<Role> roles)
      : this()
    {

      RoleActionMap = ram;
      if (roles != null)
      {
        RolesList = new SelectList(roles.Items, "RoleId", "RoleName", RoleActionMap.RoleId);
      }
    }
 /// <summary>
 /// Updates the role action map.
 /// </summary>
 /// <param name="ram">The ram.</param>
 public void UpdateRoleActionMap(RoleActionMap ram)
 {
   ExecuteQuery(CACHE_KEY.FormatWith("RoleActionMap_Update_{0}".FormatWith(ram.RoleActionMapId)),
       (con) =>
       {
         con.Execute(Properties.Resources.RoleActionMap_Update, param: ram);
         Cache.RemoveFromCache(CACHE_KEY.FormatWith("RoleActionMap.*"));
       });
 }