public void UpdateEntity(CODE_NATIONALITYEntity entity)
 {
     try
     {
         this.BaseRepository().Update(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }
 public void PhysicalDelRecord(string keyValue)
 {
     try
     {
         CODE_NATIONALITYEntity entity = new CODE_NATIONALITYEntity()
         {
             NATIONALITYID = Convert.ToInt32(keyValue)
         };
         this.BaseRepository().Delete(entity);
     }
     catch (Exception ex)
     {
         if (ex is ExceptionEx)
         {
             throw;
         }
         else
         {
             throw ExceptionEx.ThrowServiceException(ex);
         }
     }
 }