public int Add(Admin_Privilege _privilege)
 {
     try
     {
         this.Admin_Privileges.InsertOnSubmit(_privilege);
         this.SubmitChanges();
         return(Core.Variable.DB_INSERT_SUCCESS);
     }
     catch (Exception _ex)
     {
         throw new Exception(ClassName, _ex);
         //SingletonLogger.Instance.Error(ClassName, _ex);
     }
 }
 public int Edit(Admin_Privilege _privilege)
 {
     try
     {
         Admin_Privilege _o = this.Admin_Privileges.Single(o => o.Id == _privilege.Id);
         _o.Name = _privilege.Name;
         this.SubmitChanges();
         return(Core.Variable.DB_UPDATE_SUCCESS);
     }
     catch (Exception _ex)
     {
         throw new Exception(ClassName, _ex);
         //SingletonLogger.Instance.Error(ClassName, _ex);
     }
 }